Rendu
A lightweight rendering engine for experimentations
|
Ocean island tesselation evaluation shader. More...
Public Member Functions | |
void | main () |
Public Attributes | |
in | |
Output quads with smooth transitions. | |
uniform mat4 | mvp |
Transformation matrix. | |
uniform float | time |
Elapsed time. | |
uniform Wave | waves [8] |
Waves parameters. More... | |
in vec3 | iPos [] |
World position. | |
out vec3 | oPos |
World space position. | |
out vec3 | oSrcPos |
World space position before waves perturbation. | |
out vec3 | oPrevPos |
World space position before small scale waves perturbation. | |
Ocean island tesselation evaluation shader.
|
inline |
Apply Gerstner waves pertubrations to ocean plane.
uniform Wave GPUShaders::TessEval::Ocean_island::waves[8] |
Waves parameters.
Gerstner waves parameters buffer.