… | |
… | |
16 | pixelOut main(vertexOut IN, uniform sampler2D Texture) |
16 | pixelOut main(vertexOut IN, uniform sampler2D Texture) |
17 | { |
17 | { |
18 | pixelOut OUT; |
18 | pixelOut OUT; |
19 | |
19 | |
20 | half SpecExpon = 200; |
20 | half SpecExpon = 200; |
21 | float4 AmbiColor = { 0.1, 0.1, 0.1, 1.0 }; |
21 | float4 AmbiColor = { 0.9, 0.9, 0.9, 1.0 }; |
22 | float4 LightColor = { 1, 1, 1, 1 }; |
22 | float4 LightColor = { 1, 1, 1, 1 }; |
23 | float4 diffuse_color = tex2D (Texture, IN.TexCoord.xy); |
23 | float4 diffuse_color = tex2D (Texture, IN.TexCoord.xy); |
24 | |
24 | |
25 | half3 Ln = normalize (IN.LightVec); |
25 | half3 Ln = normalize (IN.LightVec); |
26 | half3 Nn = normalize (IN.WorldNormal); |
26 | half3 Nn = normalize (IN.WorldNormal); |