Der Vortrag „OpenGL Shaders“ von Eduonix Learning Solutions ist Bestandteil des Kurses „iOS OpenGL ES 2.0“. Der Vortrag ist dabei in folgende Kapitel unterteilt:
5 Sterne |
|
5 |
4 Sterne |
|
0 |
3 Sterne |
|
0 |
2 Sterne |
|
0 |
1 Stern |
|
0 |
... as having a “programmable function pipeline.” Only two stages of the processing pipeline are actually programmable: the vertex stage and the fragment ...
... directs the shading and colors of each fragment. These programs are written in a C - like language called GLSL (GL ...
... runs once for each vertex. The fragment shader runs once for each fragment. Information can be passed from the vertex shader ...
... coordinates and colors) varying - indicates that values should be interpolated between vertices gl_position - sets the final position of the vertex, this is a built-in value ...
... FragmentColor; } lowp - fragment shaders must specify a precision for values. This should be the lowest precision that will ...
... the shader handle to the shader source (as a char* string) by calling glShaderSource(...) compile the shader by calling glCompileShader(...), passing it ...
... shader to the program handle by calling glAttachShader(...) link the shaders to the program by calling glLinkProgram(...), passing the ...