Changeset 1085 for GTP/trunk/App/Demos/Illum
- Timestamp:
- 07/06/06 10:03:46 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials
- Files:
-
- 1 added
- 3 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 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/hangar.material
r1081 r1085 5 5 pass 6 6 { 7 IllumTechniques 8 { 9 RenderTechnique DepthShadowReciever 10 { 11 12 } 13 } 14 7 15 ambient 0.5 0.5 0.5 1 8 16 diffuse 0.5 0.5 0.5 1 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/kupola.material
r1081 r1085 20 20 } 21 21 } 22 23 scene_blend none 24 scene_blend_op add 25 scene_blend_op_alpha add 26 scene_blend_alpha none 22 27 23 28 lighting off … … 69 74 } 70 75 76 scene_blend none 77 scene_blend_op add 78 scene_blend_op_alpha add 79 scene_blend_alpha none 71 80 72 81 lighting off
Note: See TracChangeset
for help on using the changeset viewer.