vs_2_0 dcl_position v0 dcl_normal v1 #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Geometry transform ;------------------------------------------------------------------------------ ; Copy model-space geometry to pipeline registers mov pPos, vPos mov pNormal, vNormal ; Transform position to projection space m4x4 OPOS, vPos, C_PROJECTION_MATRIX FIXUP_OPOS #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Defines ;------------------------------------------------------------------------------ #define C_HALF c10 ;------------------------------------------------------------------------------ ; Diffuse color ;------------------------------------------------------------------------------ ; Store biased normal vector directly in diffuse channel (for debugging) mad oD0.xyz, pNormal, C_HALF, C_HALF #ifdef _PCBUILD mov oD0.w, C_ONE #endif #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Fog calculation ;------------------------------------------------------------------------------ #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Texture coordinates ;------------------------------------------------------------------------------