Changeset 2467 for GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollps.hlsl
- Timestamp:
- 06/25/07 17:50:39 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/trollps.hlsl
r2458 r2467 45 45 46 46 float4 diffuseColor = albedo * tex2D(colorTexture, IN.texCoord); 47 if( lightPower1!= 0)47 if( dot(lightRange1, lightRange1) != 0) 48 48 Color += Illumination(N, L1, V, lightColor1 * lightPower1, lightRange1, diffuseColor, specularity, specularColor); 49 if( lightPower2!= 0)49 if(dot(lightRange2, lightRange2) != 0) 50 50 Color += Illumination(N, L2, V, lightColor2 * lightPower2, lightRange2, diffuseColor, specularity, specularColor); 51 51
Note: See TracChangeset
for help on using the changeset viewer.