- Timestamp:
- 03/30/07 11:57:27 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic/GTPCaustic.hlsl
r2266 r2301 258 258 float dist = readDistanceCubeMap(DistanceCubeMap, dir); 259 259 260 float EPSILON = 0.00001;261 262 if(mydist > dist + EPSILON) caustic = 0;260 float EPSILON = 1; 261 262 //if(mydist > dist + EPSILON) caustic = 0; 263 263 264 264 caustic.rgb *= max(attenuation - mydist, 0.0) / attenuation; -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic/GTPCaustic.material
r2266 r2301 131 131 param_named lastCenter float3 0 0 0 132 132 param_named sFresnel float 0.1 133 param_named sRefraction float 0. 9133 param_named sRefraction float 0.8 134 134 } 135 135 //Cube map for reflections and refractions … … 189 189 param_named lastCenter float3 0 0 0 190 190 param_named sFresnel float 0.1 191 param_named sRefraction float 0. 9191 param_named sRefraction float 0.8 192 192 } 193 193 //Cube map for reflections and refractions
Note: See TracChangeset
for help on using the changeset viewer.