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

Comparing libgender/vsh.cg (file contents):
Revision 1.10 by root, Wed Oct 6 10:06:20 2004 UTC vs.
Revision 1.11 by root, Wed Oct 6 19:45:29 2004 UTC

17 17
18vertexOut main(vertexIn IN) 18vertexOut main(vertexIn IN)
19{ 19{
20 vertexOut OUT; 20 vertexOut OUT;
21 21
22 float4 LightPos = { 0, 2, 1000, 1 }; 22 float4 LightPos = { 0, 2, 10, 1 };
23 23
24 float3 wpos = mul (glstate.matrix.modelview[0], IN.Position).xyz; 24 float3 wpos = mul (glstate.matrix.modelview[0], IN.Position).xyz;
25 25
26 OUT.WorldNormal = normalize (mul (glstate.matrix.invtrans.modelview[0], IN.Normal).xyz); 26 OUT.WorldNormal = normalize (mul (glstate.matrix.invtrans.modelview[0], IN.Normal).xyz);
27 OUT.EyeVec = normalize (wpos); 27 OUT.EyeVec = normalize (wpos);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines