Shader Coding - Best Practices
Jump to navigation
Jump to search
Work in progress This article or section will be worked on in the upcoming hours or days. Note: Will be based on: http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg35934.html See history for the latest developments. |
Fragment Shaders
Note To check if your shader is working, add this as the last line, it should turn all pixels black:
gl_FragColor = vec4 (0.0,0.0,0.0,1.0);
|