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 | |
regular terrain shader that should work on all multi-texture video cards (slowest version)
Definition at line 1486 of file W3DShaderManager.cpp.
|
virtual |
perform any one time initialization and validation
Implements W3DShaderInterface.
Definition at line 1565 of file W3DShaderManager.cpp.
|
virtual |
do any custom resetting necessary to bring W3D in sync.
Reimplemented from W3DShaderInterface.
Definition at line 1589 of file W3DShaderManager.cpp.
setup shader for the specified rendering pass.
Reimplemented from W3DShaderInterface.
Definition at line 1647 of file W3DShaderManager.cpp.
| 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.
| 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.
| int TerrainShader2Stage::m_curTick |
Definition at line 1491 of file W3DShaderManager.cpp.
| float TerrainShader2Stage::m_xOffset |
Definition at line 1492 of file W3DShaderManager.cpp.
| float TerrainShader2Stage::m_xSlidePerSecond |
How far the clouds move per second.
Definition at line 1489 of file W3DShaderManager.cpp.
| float TerrainShader2Stage::m_yOffset |
Definition at line 1493 of file W3DShaderManager.cpp.
| float TerrainShader2Stage::m_ySlidePerSecond |
How far the clouds move per second.
Definition at line 1490 of file W3DShaderManager.cpp.