Changeset 1085 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs
- Timestamp:
- 07/06/06 10:03:46 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_Caustic.hlsl
r807 r1085 30 30 uniform samplerCUBE CubeMap : register(s0), 31 31 uniform samplerCUBE distanceCube : register(s1), 32 uniform float3 cubeMapCameraPosition):COLOR 32 uniform float3 cubeMapCameraPosition, 33 uniform float attenuation):COLOR 33 34 { 34 35 float4 Color = float4(1,1,1,1); … … 39 40 float dist = readDistanceCubeMap(distanceCube, dir); 40 41 41 float EPSILON = 20.0;42 float EPSILON = 0.1; 42 43 43 if(mydist > dist + EPSILON) caustic = 0; 44 44 //if(mydist > dist + EPSILON) caustic = 0; 45 caustic *= max(attenuation - mydist, 0) / attenuation; 46 45 47 Color = caustic; 46 48
Note: See TracChangeset
for help on using the changeset viewer.