Rendu
A lightweight rendering engine for experimentations
|
Shadow island fragment shader. More...
Public Member Functions | |
uniform uniform uniform void | main () |
Public Attributes | |
in vec2 | uv |
UV coordinates. | |
uniform vec3 | lDir |
Light direction. | |
uniform uint | stepCount |
Raymarching step count. | |
uniform float | texelSize |
Size of a texel in world space. | |
uniform uniform out vec2 | shadow |
Shadowing factors. | |
Shadow island fragment shader.
|
inline |
Ray-march against the height map to determine shadows at sea and ground level.