Rendu
A lightweight rendering engine for experimentations
|
Ground island vertex shader. More...
Public Member Functions | |
void | main () |
Public Attributes | |
in vec3 | v |
Position. | |
uniform mat4 | mvp |
MVP transformation matrix. | |
uniform vec3 | shift |
Terrain shift in world space. | |
uniform float | texelSize |
Height map texel world size. | |
uniform float | invMapSize |
Height map inverse size. | |
uniform float | invGridSize |
Grid mesh inverse size. | |
uniform uniform out vec4 | pos |
World position. | |
uniform out vec2 | uv |
Texture coordinates. | |
Ground island vertex shader.
|
inline |
Apply the transformation to the input vertex. Compute the tangent-to-view space transformation matrix.