Jump to content

OpenGL pixel shader: Difference between revisions

m
→‎{{header|C}}: add {{libheader|GLUT}}
m (Javascript: make script content-type more closely adhere to media type spec from rfc 2045)
m (→‎{{header|C}}: add {{libheader|GLUT}})
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].
=={{header|C}}==
{{libheader|GLUT}}
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>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.