Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUShaders::TessControl::Ocean_island Class Reference

Ocean island tesselation control shader. More...

Public Member Functions

float lodCorner (vec3 pos)
 
void main ()
 

Public Attributes

 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.
 

Detailed Description

Ocean island tesselation control shader.

Member Function Documentation

◆ lodCorner()

float GPUShaders::TessControl::Ocean_island::lodCorner ( vec3  pos)
inline

Evaluate the LOD at a given position.

Parameters
posthe 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: