Changeset 2417 for GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollps.hlsl
- Timestamp:
- 06/06/07 19:19:29 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollps.hlsl
r2398 r2417 15 15 16 16 uniform float specularity; 17 uniform float albedo; 17 18 uniform float4 specularColor; 18 19 … … 37 38 float3 L = IN.L; 38 39 39 float4 diffuseColor = tex2D(colorTexture, IN.texCoord);40 float4 diffuseColor = albedo * tex2D(colorTexture, IN.texCoord); 40 41 41 42 Color = Illumination(N, L, V, lightColor * lightPower, lightRange, diffuseColor, specularity, specularColor); 42 43 43 float4 ret = diffuseColor * 0.1 +Color;44 float4 ret = Color; 44 45 return float4(ret.xyz, dist); 45 46 }
Note: See TracChangeset
for help on using the changeset viewer.