Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# Ogre::TerrainVertexProgram Class Reference

`#include <OgreTerrainVertexProgram.h>`

List of all members.

## Static Public Methods

const String & | getProgramSource (FogMode fogMode, const String syntax)
| General purpose method to get any of the program sources.

## Static Private Attributes

String | mNoFogArbvp1
String | mLinearFogArbvp1
String | mExpFogArbvp1
String | mExp2FogArbvp1
String | mNoFogVs_1_1
String | mLinearFogVs_1_1
String | mExpFogVs_1_1
String | mExp2FogVs_1_1

## Member Function Documentation

const String & Ogre::TerrainVertexProgram::getProgramSource | ( | FogMode | fogMode,
|  | const String | syntax
| ) | `[static]`

| General purpose method to get any of the program sources. Definition at line 229 of file OgreTerrainVertexProgram.cpp. References Ogre::FOG_EXP, Ogre::FOG_EXP2, Ogre::FOG_LINEAR, Ogre::FOG_NONE, Ogre::FogMode, mExp2FogArbvp1, mExp2FogVs_1_1, mExpFogArbvp1, mExpFogVs_1_1, mLinearFogArbvp1, mLinearFogVs_1_1, mNoFogArbvp1, mNoFogVs_1_1, and Ogre::String.

## Member Data Documentation

String Ogre::TerrainVertexProgram::mExp2FogArbvp1`[static, private]`

Initial value:

            "!!ARBvp1.0\n"
            "PARAM c6 = { 1, 1, 1, 1 };\n"
            "PARAM c7 = { 0.002, 2.71828, 0, 0 };\n"
            "#var float4x4 worldViewProj :  : c[0], 4 : 9 : 1\n"
            "#var float morphFactor :  : c[4] : 10 : 1\n"
            "#var float fogDensity :  : c[5] : 11 : 1\n"
            "TEMP R0, R1;\n"
            "ATTRIB v17 = vertex.weight;\n"
            "ATTRIB v25 = vertex.texcoord[1];\n"
            "ATTRIB v24 = vertex.texcoord[0];\n"
            "ATTRIB v16 = vertex.position;\n"
            "PARAM c0[4] = { program.local[0..3] };\n"
            "PARAM c4 = program.local[4];\n"
            "   MOV result.texcoord[0], v24;\n"
            "   MOV result.texcoord[1], v25;\n"
            "   MOV R1, v16;\n"
            "   MAD R1.y, v17.x, c4.x, R1.y;\n"
            "   DP4 R0.x, c0[0], R1;\n"
            "   DP4 R0.y, c0[1], R1;\n"
            "   DP4 R0.z, c0[2], R1;\n"
            "   DP4 R0.w, c0[3], R1;\n"
            "   MOV result.position, R0;\n"
            "   MOV result.color.front.primary, c6.x;\n"
            "   MUL R0.x, R0.z, c7.x;\n"
            "   MUL R0.zw, R0.x, R0.x;\n"
            "   MOV R0.xy, c7.y;\n"
            "   LIT R0.z, R0;\n"
            "   RCP result.fogcoord.x, R0.z;\n"
            "END\n"

Definition at line 108 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

String Ogre::TerrainVertexProgram::mExp2FogVs_1_1`[static, private]`

Initial value:

            "vs_1_1\n"
            "def c6, 1, 1, 1, 1\n"
            "def c7, 0.002, 2.71828, 0, 0\n"
            "//var float4x4 worldViewProj :  : c[0], 4 : 9 : 1\n"
            "//var float morphFactor :  : c[4] : 10 : 1\n"
            "//var float fogDensity :  : c[5] : 11 : 1\n"
            "dcl_blendweight v1\n"
            "dcl_texcoord1 v8\n"
            "dcl_texcoord0 v7\n"
            "dcl_position v0\n"
            "   mov oT0.xy, v7\n"
            "   mov oT1.xy, v8\n"
            "   mov r1, v0\n"
            "   mad r1.y, v1.x, c4.x, r1.y\n"
            "   dp4 r0.x, c0, r1\n"
            "   dp4 r0.y, c1, r1\n"
            "   dp4 r0.z, c2, r1\n"
            "   dp4 r0.w, c3, r1\n"
            "   mov oPos, r0\n"
            "   mov oD0, c6.x\n"
            "   mul r0.x, r0.z, c7.x\n"
            "   mul r0.zw, r0.x, r0.x\n"
            "   mov r0.xy, c7.y\n"
            "   lit r0.z, r0\n"
            "   rcp oFog, r0.z\n"

Definition at line 202 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

String Ogre::TerrainVertexProgram::mExpFogArbvp1`[static, private]`

Initial value:

            "!!ARBvp1.0\n"
            "PARAM c6 = { 1, 1, 1, 1 };\n"
            "PARAM c7 = { 2.71828, 0, 0, 0 };\n"
            "#var float4x4 worldViewProj :  : c[0], 4 : 9 : 1\n"
            "#var float morphFactor :  : c[4] : 10 : 1\n"
            "#var float fogDensity :  : c[5] : 11 : 1\n"
            "TEMP R0, R1;\n"
            "ATTRIB v17 = vertex.weight;\n"
            "ATTRIB v25 = vertex.texcoord[1];\n"
            "ATTRIB v24 = vertex.texcoord[0];\n"
            "ATTRIB v16 = vertex.position;\n"
            "PARAM c5 = program.local[5];\n"
            "PARAM c0[4] = { program.local[0..3] };\n"
            "PARAM c4 = program.local[4];\n"
            "   MOV result.texcoord[0], v24;\n"
            "   MOV result.texcoord[1], v25;\n"
            "   MOV R1, v16;\n"
            "   MAD R1.y, v17.x, c4.x, R1.y;\n"
            "   DP4 R0.x, c0[0], R1;\n"
            "   DP4 R0.y, c0[1], R1;\n"
            "   DP4 R0.z, c0[2], R1;\n"
            "   DP4 R0.w, c0[3], R1;\n"
            "   MOV result.position, R0;\n"
            "   MOV result.color.front.primary, c6.x;\n"
            "   MUL R0.zw, R0.z, c5.x;\n"
            "   MOV R0.xy, c7.x;\n"
            "   LIT R0.z, R0;\n"
            "   RCP result.fogcoord.x, R0.z;\n"
            "END\n"

Definition at line 78 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

String Ogre::TerrainVertexProgram::mExpFogVs_1_1`[static, private]`

Initial value:

            "vs_1_1\n"
            "def c6, 1, 1, 1, 1\n"
            "def c7, 2.71828, 0, 0, 0\n"
            "//var float4x4 worldViewProj :  : c[0], 4 : 9 : 1\n"
            "//var float morphFactor :  : c[4] : 10 : 1\n"
            "//var float fogDensity :  : c[5] : 11 : 1\n"
            "dcl_blendweight v1\n"
            "dcl_texcoord1 v8\n"
            "dcl_texcoord0 v7\n"
            "dcl_position v0\n"
            "   mov oT0.xy, v7\n"
            "   mov oT1.xy, v8\n"
            "   mov r1, v0\n"
            "   mad r1.y, v1.x, c4.x, r1.y\n"
            "   dp4 r0.x, c0, r1\n"
            "   dp4 r0.y, c1, r1\n"
            "   dp4 r0.z, c2, r1\n"
            "   dp4 r0.w, c3, r1\n"
            "   mov oPos, r0\n"
            "   mov oD0, c6.x\n"
            "   mul r0.zw, r0.z, c5.x\n"
            "   mov r0.xy, c7.x\n"
            "   lit r0.z, r0\n"
            "   rcp oFog, r0.z\n"

Definition at line 177 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

String Ogre::TerrainVertexProgram::mLinearFogArbvp1`[static, private]`

Initial value:

            "!!ARBvp1.0\n"
            "PARAM c5 = { 1, 1, 1, 1 };\n"
            "#var float4x4 worldViewProj :  : c[0], 4 : 9 : 1\n"
            "#var float morphFactor :  : c[4] : 10 : 1\n"
            "TEMP R0, R1;\n"
            "ATTRIB v17 = vertex.weight;\n"
            "ATTRIB v25 = vertex.texcoord[1];\n"
            "ATTRIB v24 = vertex.texcoord[0];\n"
            "ATTRIB v16 = vertex.position;\n"
            "PARAM c0[4] = { program.local[0..3] };\n"
            "PARAM c4 = program.local[4];\n"
            "   MOV result.texcoord[0], v24;\n"
            "   MOV result.texcoord[1], v25;\n"
            "   MOV R1, v16;\n"
            "   MAD R1.y, v17.x, c4.x, R1.y;\n"
            "   DP4 R0.x, c0[0], R1;\n"
            "   DP4 R0.y, c0[1], R1;\n"
            "   DP4 R0.z, c0[2], R1;\n"
            "   DP4 R0.w, c0[3], R1;\n"
            "   MOV result.fogcoord.x, R0.z;\n"
            "   MOV result.position, R0;\n"
            "   MOV result.color.front.primary, c5.x;\n"
            "END\n"

Definition at line 54 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

String Ogre::TerrainVertexProgram::mLinearFogVs_1_1`[static, private]`

Initial value:

            "vs_1_1\n"
            "def c5, 1, 1, 1, 1\n"
            "//var float4x4 worldViewProj :  : c[0], 4 : 9 : 1\n"
            "//var float morphFactor :  : c[4] : 10 : 1\n"
            "dcl_blendweight v1\n"
            "dcl_texcoord1 v8\n"
            "dcl_texcoord0 v7\n"
            "dcl_position v0\n"
            "   mov oT0.xy, v7\n"
            "   mov oT1.xy, v8\n"
            "   mov r1, v0\n"
            "   mad r1.y, v1.x, c4.x, r1.y\n"
            "   dp4 r0.x, c0, r1\n"
            "   dp4 r0.y, c1, r1\n"
            "   dp4 r0.z, c2, r1\n"
            "   dp4 r0.w, c3, r1\n"
            "   mov oFog, r0.z\n"
            "   mov oPos, r0\n"
            "   mov oD0, c5.x\n"

Definition at line 157 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

String Ogre::TerrainVertexProgram::mNoFogArbvp1`[static, private]`

Initial value:

            "!!ARBvp1.0\n"
            "PARAM c5 = { 1, 1, 1, 1 };\n"
            "#var float4x4 worldViewProj :  : c[0], 4 : 8 : 1\n"
            "#var float morphFactor :  : c[4] : 9 : 1\n"
            "TEMP R0;\n"
            "ATTRIB v17 = vertex.weight;\n"
            "ATTRIB v25 = vertex.texcoord[1];\n"
            "ATTRIB v24 = vertex.texcoord[0];\n"
            "ATTRIB v16 = vertex.position;\n"
            "PARAM c0[4] = { program.local[0..3] };\n"
            "PARAM c4 = program.local[4];\n"
            "   MOV result.texcoord[0], v24;\n"
            "   MOV result.texcoord[1], v25;\n"
            "   MOV R0, v16;\n"
            "   MAD R0.y, v17.x, c4.x, R0.y;\n"
            "   DP4 result.position.x, c0[0], R0;\n"
            "   DP4 result.position.y, c0[1], R0;\n"
            "   DP4 result.position.z, c0[2], R0;\n"
            "   DP4 result.position.w, c0[3], R0;\n"
            "   MOV result.color.front.primary, c5.x;\n"
            "END\n"

Definition at line 31 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

String Ogre::TerrainVertexProgram::mNoFogVs_1_1`[static, private]`

Initial value:

            "vs_1_1\n"
            "def c5, 1, 1, 1, 1\n"
            "//var float4x4 worldViewProj :  : c[0], 4 : 8 : 1\n"
            "//var float morphFactor :  : c[4] : 9 : 1\n"
            "dcl_blendweight v1\n"
            "dcl_texcoord1 v8\n"
            "dcl_texcoord0 v7\n"
            "dcl_position v0\n"
            "   mov oT0.xy, v7\n"
            "   mov oT1.xy, v8\n"
            "   mov r0, v0\n"
            "   mad r0.y, v1.x, c4.x, r0.y\n"
            "   dp4 oPos.x, c0, r0\n"
            "   dp4 oPos.y, c1, r0\n"
            "   dp4 oPos.z, c2, r0\n"
            "   dp4 oPos.w, c3, r0\n"
            "   mov oD0, c5.x\n"

Definition at line 139 of file OgreTerrainVertexProgram.cpp.

Referenced by getProgramSource().

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

- OgreTerrainVertexProgram.h
- OgreTerrainVertexProgram.cpp

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:50:05 2004