- 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/MoriaHallBase.hlsl
r2386 r2398 92 92 float4 Color = 0; 93 93 float3 N = NormalMap(IN.wTangent, IN.wBinormal, IN.wNormal, IN.texCoord2.xy, bumpMap); 94 float3 V = normalize(IN.wView); 94 float dist = length(IN.wView); 95 float3 V = IN.wView / dist; 95 96 // read textures 96 97 float4 diffuseColor = tex2D(tileTexture, IN.texCoord.zw) * tex2D(detailTexture, IN.texCoord.xy); … … 104 105 float shadow; 105 106 106 if(dot(lightColor1, lightColor1) != 0)107 {107 //if(dot(lightColor1, lightColor1) != 0) 108 //{ 108 109 L = wLightPos1.xyz - IN.wPos * wLightPos1.w; 109 110 //illumination … … 113 114 shadow = shadowPoint(ShadowMap1Point, lightCPos, lightFarPlane1); 114 115 Color += col * shadow; 115 } 116 117 //Color = col; 118 //} 116 119 117 120 //---------------------------------------------------------------------------------------------------------------- … … 137 140 //gather caustics for all casters 138 141 //return diffuseColor; 142 Color.a = dist; 139 143 return Color; 140 144 }
Note: See TracChangeset
for help on using the changeset viewer.