Méthode | Description | |
---|---|---|
Draw ( ) : void | ||
Initialize ( ) : void | ||
LoadContent ( ) : void | ||
SetCamera ( Matrix viewProj, Vector3 pos ) : void |
Set the ViewProjection matrix and position of the Camera.
|
|
Update ( ) : void | ||
UpdateWaterMaps ( ) : void |
Updates the reflection and refraction maps. Called on update.
|
|
Water ( ) : System |
Méthode | Description | |
---|---|---|
GenTriGrid ( int numVertRows, int numVertCols, float dx, float dz, Vector3 center, Vector3 &verts, int &indices ) : void |
Generates a grid of vertices to use for the water plane.
|
|
UpdateEffectParams ( ) : void |
Updates effect parameters related to the water shader
|
public SetCamera ( Matrix viewProj, Vector3 pos ) : void | ||
viewProj | Matrix | |
pos | Vector3 | |
Résultat | void |