Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TerrainShader2Stage Class Reference

regular terrain shader that should work on all multi-texture video cards (slowest version) More...

Inherits W3DShaderInterface.

Public Member Functions

virtual Int set (Int pass)
 setup shader for the specified rendering pass.
 
virtual Int init (void)
 perform any one time initialization and validation
 
virtual void reset (void)
 do any custom resetting necessary to bring W3D in sync.
 
void updateNoise1 (D3DXMATRIX *destMatrix, D3DXMATRIX *curViewInverse, Bool doUpdate=true)
 generate the uv coordinates for Noise1 (i.e clouds)
 
void updateNoise2 (D3DXMATRIX *destMatrix, D3DXMATRIX *curViewInverse, Bool doUpdate=true)
 generate the uv coordinates for Noise2 (i.e lightmap)
 
- Public Member Functions inherited from W3DShaderInterface
Int getNumPasses (void)
 
virtual Int shutdown (void)
 

Public Attributes

float m_xSlidePerSecond
 How far the clouds move per second.
 
float m_ySlidePerSecond
 How far the clouds move per second.
 
int m_curTick
 
float m_xOffset
 
float m_yOffset
 

Additional Inherited Members

- Protected Attributes inherited from W3DShaderInterface
Int m_numPasses
 release resources used by shader
 

Detailed Description

regular terrain shader that should work on all multi-texture video cards (slowest version)

Definition at line 1486 of file W3DShaderManager.cpp.

Member Function Documentation

◆ init()

Int TerrainShader2Stage::init ( void )
virtual

perform any one time initialization and validation

Implements W3DShaderInterface.

Definition at line 1565 of file W3DShaderManager.cpp.

◆ reset()

void TerrainShader2Stage::reset ( void )
virtual

do any custom resetting necessary to bring W3D in sync.

Reimplemented from W3DShaderInterface.

Definition at line 1589 of file W3DShaderManager.cpp.

◆ set()

Int TerrainShader2Stage::set ( Int pass)
virtual

setup shader for the specified rendering pass.

Reimplemented from W3DShaderInterface.

Definition at line 1647 of file W3DShaderManager.cpp.

◆ updateNoise1()

void TerrainShader2Stage::updateNoise1 ( D3DXMATRIX * destMatrix,
D3DXMATRIX * curViewInverse,
Bool doUpdate = true )

generate the uv coordinates for Noise1 (i.e clouds)

Definition at line 1604 of file W3DShaderManager.cpp.

◆ updateNoise2()

void TerrainShader2Stage::updateNoise2 ( D3DXMATRIX * destMatrix,
D3DXMATRIX * curViewInverse,
Bool doUpdate = true )

generate the uv coordinates for Noise2 (i.e lightmap)

Definition at line 1638 of file W3DShaderManager.cpp.

Member Data Documentation

◆ m_curTick

int TerrainShader2Stage::m_curTick

Definition at line 1491 of file W3DShaderManager.cpp.

◆ m_xOffset

float TerrainShader2Stage::m_xOffset

Definition at line 1492 of file W3DShaderManager.cpp.

◆ m_xSlidePerSecond

float TerrainShader2Stage::m_xSlidePerSecond

How far the clouds move per second.

Definition at line 1489 of file W3DShaderManager.cpp.

◆ m_yOffset

float TerrainShader2Stage::m_yOffset

Definition at line 1493 of file W3DShaderManager.cpp.

◆ m_ySlidePerSecond

float TerrainShader2Stage::m_ySlidePerSecond

How far the clouds move per second.

Definition at line 1490 of file W3DShaderManager.cpp.


The documentation for this class was generated from the following file: