Changeset 2422 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPathMap/PathMapWeightCompute.hlsl
- Timestamp:
- 06/08/07 00:05:53 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPathMap/PathMapWeightCompute.hlsl
r2417 r2422 79 79 //visibility = 1.0 - visibility; 80 80 //visibility = 1.0 + 0.00001 * visibility; 81 //float spotFalloff = (dot(-diff, lightDir) - lightAngleCos) / (1.0 - lightAngleCos);82 float spotFalloff = max( dot(-diff, lightDir), 0) + 0.0000000001 * lightAngleCos;81 float spotFalloff = (dot(-diff, lightDir) - lightAngleCos) / (1.0 - lightAngleCos); 82 //float spotFalloff = max( dot(-diff, lightDir), 0) + 0.0000000001 * lightAngleCos; 83 83 //spotFalloff = 1.0 + spotFalloff * 0.000000001; 84 84 spotFalloff = pow(saturate(spotFalloff), spotLightFalloff); … … 153 153 154 154 float3 w = tex2Dlod(allWeightsSampler, float4(coord1, 0, 0)).rgb; 155 float radrad = 1;//tex2Dlod(radionSampler, float4(coord2, 0, 0)).a;155 float radrad = tex2Dlod(radionSampler, float4(coord2, 0, 0)).a; 156 156 weight += w * radrad; 157 157 clusterRad += radrad;
Note: See TracChangeset
for help on using the changeset viewer.