ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/vsh.cg
(Generate patch)

Comparing libgender/vsh.cg (file contents):
Revision 1.11 by root, Wed Oct 6 19:45:29 2004 UTC vs.
Revision 1.12 by root, Sat Oct 9 12:12:34 2004 UTC

13 float3 WorldView : TEXCOORD4; 13 float3 WorldView : TEXCOORD4;
14 float3 test1 : TEXCOORD5; 14 float3 test1 : TEXCOORD5;
15 float3 test2 : TEXCOORD5; 15 float3 test2 : TEXCOORD5;
16}; 16};
17 17
18vertexOut main(vertexIn IN) 18vertexOut main(vertexIn IN,
19 uniform float4 lightpos)
19{ 20{
20 vertexOut OUT; 21 vertexOut OUT;
21 22
22 float4 LightPos = { 0, 2, 10, 1 }; 23 float4 LightPos = lightpos;
23 24
24 float3 wpos = mul (glstate.matrix.modelview[0], IN.Position).xyz; 25 float3 wpos = mul (glstate.matrix.modelview[0], IN.Position).xyz;
25 26
26 OUT.WorldNormal = normalize (mul (glstate.matrix.invtrans.modelview[0], IN.Normal).xyz); 27 OUT.WorldNormal = normalize (mul (glstate.matrix.invtrans.modelview[0], IN.Normal).xyz);
27 OUT.EyeVec = normalize (wpos); 28 OUT.EyeVec = normalize (wpos);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines