Ignore:
Timestamp:
01/24/07 21:44:30 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

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

    r2024 r2054  
    256256 
    257257        if(mydist > dist + EPSILON) caustic = 0; 
    258         //caustic.rgb *= max(attenuation - mydist, 0.0) / attenuation; 
     258         
     259        caustic.rgb *= max(attenuation - mydist, 0.0) / attenuation; 
    259260                         
    260261        Color = caustic; 
    261         Color += attenuation; 
    262         Color.a = 1;     
     262        //Color += attenuation * 0.000000000001; 
     263        Color.a = 1; 
     264 
    263265        return Color; 
    264266} 
Note: See TracChangeset for help on using the changeset viewer.