Ocean island tesselation control shader.
More...
|
|
| out |
| | Output patches.
|
| |
|
uniform vec3 | camDir |
| | Camera direction.
|
| |
|
uniform vec3 | camPos |
| | Camera world position.
|
| |
|
uniform float | maxLevelX |
| | Maximum LOD.
|
| |
|
uniform float | maxLevelY |
| | Maximum level scaling.
|
| |
|
uniform float | distanceScale |
| | Extra distance scaling.
|
| |
|
in vec3 | inPos [] |
| | Grid positions.
|
| |
|
out vec3 | outPos [4] |
| | World space position.
|
| |
Ocean island tesselation control shader.
◆ lodCorner()
| float GPUShaders::TessControl::Ocean_island::lodCorner |
( |
vec3 |
pos | ) |
|
|
inline |
Evaluate the LOD at a given position.
- Parameters
-
| pos | the world space position |
- Returns
- the level of detail.
◆ main()
| void GPUShaders::TessControl::Ocean_island::main |
( |
| ) |
|
|
inline |
Subdivide patches based on distance to camera.
The documentation for this class was generated from the following file:
- resources/island/shaders/ocean_island.tessc