View Single Post
Old 09-13-2016, 12:44 PM
dcnieho dcnieho is offline
Join Date: Feb 2011
Posts: 59
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?
Reply With Quote