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 ;------------------------------------------------------------------------------ ; Combine vertex color and material color mul oD0, vDiffuse, C_MATERIAL_COLOR #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Fog calculation ;------------------------------------------------------------------------------ #include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Texture coordinates ;------------------------------------------------------------------------------ ; Scale and offset 4 sets of texture coordinates mov r0, c12 mad oT0, vTexCoords, r0, c16 mov r0, c13 mad oT1, vTexCoords, r0, c17 mov r0, c14 mad oT2, vTexCoords, r0, c18 mov r0, c15 mad oT3, vTexCoords, r0, c19