Rendu
A lightweight rendering engine for experimentations
|
Background gbuffer fragment shader. More...
Public Member Functions | |
void | main () |
Public Attributes | |
in vec2 | uv |
Texture coordinates. | |
uniform uniform vec3 | bgColor |
Background color. | |
uniform bool | useTexture |
Should the texture be used instead of the color. | |
out vec4 | fragColor |
Color. | |
out vec4 | fragNormal |
View space normal. | |
out vec4 | fragEffects |
Effects. | |
Background gbuffer fragment shader.
|
inline |
Transfer color along with the material ID, and output a null normal.