Rendu
A lightweight rendering engine for experimentations
|
Light shadow linear variance fragment shader. More...
Public Member Functions | |
void | main () |
Public Attributes | |
in vec4 | worldPos |
World space position. | |
in vec2 | uv |
Texture coordinates. | |
uniform uniform vec3 | lightPositionWorld |
The world space position of the light. | |
uniform float | lightFarPlane |
The light projection matrix far plane. | |
uniform bool | hasMask |
Should the object alpha mask be applied. | |
out vec2 | fragColor |
World space depth and depth squared. | |
Light shadow linear variance fragment shader.
|
inline |
Compute the depth in world space, normalized by the far plane distance