Changeset 2398 for GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollps.hlsl
- Timestamp:
- 05/28/07 17:00:18 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollps.hlsl
r2389 r2398 33 33 float4 Color = 0; 34 34 float3 N = normalize(IN.normal);//NormalMap(IN.tangent, IN.binormal, IN.normal, IN.texCoord, bumpMap); 35 float3 V = normalize(IN.V); 35 float dist = length(IN.V); 36 float3 V = IN.V /dist; 36 37 float3 L = IN.L; 37 38 … … 40 41 Color = Illumination(N, L, V, lightColor * lightPower, lightRange, diffuseColor, specularity, specularColor); 41 42 42 return diffuseColor * 0.1 + Color; 43 float4 ret = diffuseColor * 0.1 + Color; 44 return float4(ret.xyz, dist); 43 45 }
Note: See TracChangeset
for help on using the changeset viewer.