Project Rembrandt: Difference between revisions

Line 55: Line 55:


== Guidelines for shader writers ==
== Guidelines for shader writers ==
=== Predefined uniforms ===
=== Geometry Stage ===
=== Geometry Stage ===
The Geometry Stage is there to fill the G-buffer. Shading doesn't occur at this stage, so light or fog computation should not be part of the shader. The required operation in the Fragment Shader is to fill every individual buffer with sensible value :
The Geometry Stage is there to fill the G-buffer. Shading doesn't occur at this stage, so light or fog computation should not be part of the shader. The required operation in the Fragment Shader is to fill every individual buffer with sensible value :
269

edits