Definition at line 31 of file RedSquareShader.java.
◆ FRAGMENT_SHADER_TEXT
| final String com.jogamp.opengl.test.junit.jogl.demos.es2.shader.RedSquareShader.FRAGMENT_SHADER_TEXT |
|
static |
Initial value:=
" #ifdef GL_ES\n" +
" precision mediump float;\n" +
" precision mediump int;\n" +
"#endif\n" +
"\n" +
"#if __VERSION__ >= 130\n" +
" #define varying in\n" +
" out vec4 mgl_FragColor;\n" +
"#else\n" +
" #define mgl_FragColor gl_FragColor\n" +
"#endif\n" +
"\n" +
"varying vec4 frontColor;\n" +
"\n" +
"void main (void)\n" +
"{\n" +
" mgl_FragColor = frontColor;\n" +
"}\n"
Definition at line 54 of file RedSquareShader.java.
◆ VERTEX_SHADER_TEXT
| final String com.jogamp.opengl.test.junit.jogl.demos.es2.shader.RedSquareShader.VERTEX_SHADER_TEXT |
|
static |
Initial value:=
" #ifdef GL_ES\n" +
" precision mediump float;\n" +
" precision mediump int;\n" +
"#endif\n" +
"\n" +
"#if __VERSION__ >= 130\n" +
" #define attribute in\n" +
" #define varying out\n" +
"#endif\n"+
"\n" +
"uniform mat4 mgl_PMVMatrix[2];\n" +
"attribute vec4 mgl_Vertex;\n" +
"attribute vec4 mgl_Color;\n" +
"varying vec4 frontColor;\n" +
"\n" +
"void main(void)\n" +
"{\n" +
" frontColor=mgl_Color;\n" +
" gl_Position = mgl_PMVMatrix[0] * mgl_PMVMatrix[1] * mgl_Vertex;\n" +
"}\n"
Definition at line 32 of file RedSquareShader.java.
The documentation for this class was generated from the following file: