source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/OgreGames/CarGame/Media/materials/programs/GameTools_UV.hlsl @ 3255

Revision 3255, 480 bytes checked in by szirmay, 15 years ago (diff)
Line 
1struct VS_OUT
2{
3        float4 hPosition        : POSITION;
4        float3 texCoord         : TEXCOORD0;
5};
6
7VS_OUT UV_VS(float4 position : POSITION,       
8                float3 texCoord: TEXCOORD0,     
9                float3 texCoord1: TEXCOORD1,   
10                uniform float4x4 worldViewProj)
11{
12  VS_OUT OUT;
13  OUT.hPosition = mul(worldViewProj, position);
14  OUT.texCoord = texCoord1;
15  return OUT;
16}
17
18
19float4 UV_PS(VS_OUT IN,
20                        uniform float4 ID):COLOR
21{
22  return float4(IN.texCoord.xyz, ID.x);
23  //return float4(ID.x,0,0,1);
24}
Note: See TracBrowser for help on using the repository browser.