#include "..\..\VertexShader.h" ;------------------------------------------------------------------------------ ; Texture coordinates ;------------------------------------------------------------------------------ ; Base texture is the normal map mul oT0.xy, vTexCoords, C_TEXCOORD_DECOMPRESS ; Transform light direction into texture space and store as a texture stage mov rTemp, vLightDir dp3 oT1.x, rTemp, vBasisU dp3 oT1.y, rTemp, vBasisV dp3 oT1.z, rTemp, vNormal ; Copy light map coords from UV set 1 mul oT2.xy, vTexCoords1, C_TEXCOORD_DECOMPRESS