jogamp.opengl.util.glsl.fixedfunc.shaders.FixedFuncColor.vp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jogl-all Show documentation
Show all versions of jogl-all Show documentation
Java™ Binding for the OpenGL® API
The newest version!
#if __VERSION__ >= 130
#define attribute in
#define varying out
#endif
#include es_precision.glsl
#include mgl_const.glsl
#include mgl_uniform.glsl
#include mgl_attribute.glsl
#include mgl_varying.glsl
#include mgl_settexcoord.vp
void main(void)
{
if(mgl_ColorEnabled>0) {
frontColor=mgl_Color;
} else {
frontColor=mgl_ColorStatic;
}
gl_Position = mgl_PMVMatrix[0] * mgl_PMVMatrix[1] * mgl_Vertex;
setTexCoord(gl_Position);
}