Ignore:
Timestamp:
06/08/07 00:05:53 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPathMap/PathMapWeightCompute.hlsl

    r2417 r2422  
    7979    //visibility = 1.0 - visibility; 
    8080    //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; 
    8383        //spotFalloff = 1.0 + spotFalloff * 0.000000001; 
    8484        spotFalloff = pow(saturate(spotFalloff), spotLightFalloff); 
     
    153153                 
    154154                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;          
    156156                weight += w * radrad;            
    157157                clusterRad += radrad; 
Note: See TracChangeset for help on using the changeset viewer.