OpenGL pixel shader: Difference between revisions
Content added Content deleted
m (Javascript: make script content-type more closely adhere to media type spec from rfc 2045) |
m (→{{header|C}}: add {{libheader|GLUT}}) |
||
Line 9: | Line 9: | ||
See also: [http://www.opengl.org/documentation/glsl/ opengl.org's gl shader language documentation], and [http://www.lighthouse3d.com/tutorials/glsl-tutorial/ lighthouse3d.com's glsl tutorial]. |
See also: [http://www.opengl.org/documentation/glsl/ opengl.org's gl shader language documentation], and [http://www.lighthouse3d.com/tutorials/glsl-tutorial/ lighthouse3d.com's glsl tutorial]. |
||
=={{header|C}}== |
=={{header|C}}== |
||
{{libheader|GLUT}} |
|||
Getting a true (pseudo) random number is surprisingly tricky. The following code makes something noisy, but not at all random: |
Getting a true (pseudo) random number is surprisingly tricky. The following code makes something noisy, but not at all random: |
||
<lang c>#include <stdio.h> |
<lang c>#include <stdio.h> |