source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/textured.hlsl @ 1683

Revision 1683, 443 bytes checked in by szirmay, 18 years ago (diff)
Line 
1
2
3struct VertOut
4{
5float4 hPosition :POSITION;
6float2 texCoord :TEXCOORD;
7};
8
9VertOut vs(float4 position:POSITION,
10           float4 texCoord :TEXCOORD,
11           uniform float4x4 worldViewProj)
12{
13VertOut OUT;
14OUT.hPosition = mul(worldViewProj, position);
15OUT.texCoord = texCoord;
16return OUT;
17
18}
19
20float4 ps(VertOut IN,
21                uniform sampler2D colorTex):COLOR
22{
23float4 Color;
24Color = tex2D(colorTex, IN.texCoord) * 10.0;
25return Color;
26}
Note: See TracBrowser for help on using the repository browser.