Re: Help with shaders
Posted by Martin on Feb 13, 2012; 10:39am
URL: https://forum.jogamp.org/Help-with-shaders-tp3737063p3739754.html
Because jzy3d uses very simple color using gl.glColorXX(...) to paint vertices:
gl.glBegin(GL2.GL_POLYGON);
for(Point p: points){
gl.glColor4f(p.rgb.r, p.rgb.g, p.rgb.b, p.rgb.a);
gl.glVertex3f(p.xyz.x, p.xyz.y, p.xyz.z);
}
gl.glEnd();
The only place where color material are used is when enabling lights with "englightable objects", and there are none in my trial code.