vs_2_0 dcl_position v0 dcl_color v2 dcl_texcoord0 v3 #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Geometry transform ;------------------------------------------------------------------------------ ; Scale and offset screen position coordinates mov r0, c10 mad OPOS, vPos, r0, c11 FIXUP_OPOS #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Diffuse color ;------------------------------------------------------------------------------ ; Initialize diffuse color mov oD0, C_MATERIAL_COLOR #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Fog calculation ;------------------------------------------------------------------------------ #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Defines ;------------------------------------------------------------------------------ #define C_DISTORTION_SCALE c16 ;------------------------------------------------------------------------------ ; Texture coordinates ;------------------------------------------------------------------------------ ; Scale and offset 2 sets of texture coordinates mov r0, c12 mov r1, c13 mad r0, vTexCoords, r0, c14 mad r1, vTexCoords, r1, c15 ; Distortion map coordinates mov oT0.xy, r0 ; First row for texm3x2tex mov oT1.x, C_DISTORTION_SCALE.x mov oT1.y, C_ZERO mov oT1.z, r1.x ; Second row for texm3x2tex mov oT2.x, C_ZERO mov oT2.y, C_DISTORTION_SCALE.y mov oT2.z, r1.y