- Timestamp:
- 01/24/07 21:44:30 (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
r2024 r2054 256 256 257 257 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; 259 260 260 261 Color = caustic; 261 Color += attenuation; 262 Color.a = 1; 262 //Color += attenuation * 0.000000000001; 263 Color.a = 1; 264 263 265 return Color; 264 266 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPCaustic/GTPCaustic.material
r2040 r2054 40 40 param_named_auto WorldView worldview_matrix 41 41 param_named_auto Proj projection_matrix 42 param_named CauSpriteSize float 20 .042 param_named CauSpriteSize float 20 43 43 } 44 44 fragment_program_ref GTP/Caustic/CauCube_PointSprite_PS 45 45 { 46 param_named CausticColor float4 0.7 0.7 0.5 0. 1546 param_named CausticColor float4 0.7 0.7 0.5 0.3 47 47 } 48 48 texture_unit … … 96 96 { 97 97 update_interval 0 98 update_all_face true 99 distance_calc true 3.5 98 update_all_face true 100 99 } 101 100 RenderTechnique DistanceCubeMap 102 101 { 103 102 update_interval 0 104 update_all_face true 105 distance_calc true 3.5 103 update_all_face true 106 104 } 107 105 RenderTechnique CausticCaster 108 106 { 109 attenuation 0107 attenuation 1000 110 108 photonmap_resolution 32 111 109 caustic_cubemap_resolution 256 … … 118 116 119 117 } 120 118 vertex_program_ref GTP/Basic/ShadedTex_VS 121 119 { 122 120 param_named_auto WorldViewProj worldviewproj_matrix … … 124 122 param_named_auto WorldInv inverse_world_matrix 125 123 } 126 124 fragment_program_ref GTP/EnvMap/Localized_Refraction_PS 127 125 { 128 126 param_named_auto cameraPos camera_position
Note: See TracChangeset
for help on using the changeset viewer.