WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   passthrough fragment shader (

dcnieho 09-13-2016 12:44 PM

passthrough fragment shader
I am trying to do a bit of vertex (and hopefully geometry) shading with the vertices of a node. Specifying a shader program with no fragment shader, or specifying the below fragment shader however both lead to color of the node being discarded.


obj = vizshape.addSphere()
shader = viz.addShader(vert=getVertexCode(),frag=None)

fragment shader instead of None above:

void main()
        gl_FragColor = gl_Color;

Could you let me know what the passthrough vertex shader should look like in this case?

All times are GMT -7. The time now is 08:41 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC