JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.demos.es2.shader.RedSquareShader Class Reference
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.demos.es2.shader.RedSquareShader:

Static Public Attributes

static final String VERTEX_SHADER_TEXT
 
static final String FRAGMENT_SHADER_TEXT
 

Detailed Description

Definition at line 31 of file RedSquareShader.java.

Member Data Documentation

◆ 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: