Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G


Jump to: navigation, search

Shader Coding - Best Practices

129 bytes added, 13:19, 22 February 2014
Fragment Shaders
<syntaxhighlight lang="glsl">
gl_FragColor = vec4 (0.0,0.0,0.0,1.0);
{{Note|This is how you can make a pixel darker:
<syntaxhighlight lang="glsl">
gl_FragColor = color * 0.5;

Navigation menu