Changeset 2527 for GTP/trunk/App/Demos/Illum/Ogre/Media/Station
- Timestamp:
- 07/05/07 16:18:22 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/Station
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/Station/StationBase.hlsl
r2507 r2527 250 250 { 251 251 //Color *= 0.00000000001; 252 Color += diffuseColor* Caustics(CausticCubeMap, CausticCasterDepthMap, IN.wPos - causticCasterCenter1, causticAttenuationRange1);252 Color.rgb += diffuseColor.rgb * Caustics(CausticCubeMap, CausticCasterDepthMap, IN.wPos - causticCasterCenter1, causticAttenuationRange1); 253 253 } 254 254 //Color.a = dist; -
GTP/trunk/App/Demos/Illum/Ogre/Media/Station/station.material
r2489 r2527 263 263 } 264 264 265 material GTP/Station/CauCube_Point 266 { 267 technique 268 { 269 pass 270 { 271 cull_hardware none 272 scene_blend src_alpha one 273 depth_check off 274 vertex_program_ref GTP/Caustic/CauCube_PointSprite_VS 275 { 276 param_named_auto WorldView worldview_matrix 277 param_named_auto Proj projection_matrix 278 param_named CauSpriteSize float 20 279 } 280 fragment_program_ref GTP/Caustic/CauCube_Point_PS 281 { 282 param_named CausticColor float4 1 1 1 0.09 283 param_named_auto targetResolution viewport_width 284 } 285 texture_unit 286 { 287 vertex_texture true 288 } 289 texture_unit 290 { 291 texture PowerOfPhotonHitTexel.dds 292 } 293 } 294 } 295 } 296 265 297 material GTP/Station/CauCube_Triangles 266 298 { … … 278 310 param_named_auto Proj projection_matrix 279 311 param_named PhotonMapResolution float 64 280 param_named WorldSize float 0. 01312 param_named WorldSize float 0.1 281 313 } 282 314 fragment_program_ref GTP/Caustic/CauCube_Triangles_PS … … 385 417 update_interval 1 386 418 update_all_face true 387 photonmap_resolution 128419 photonmap_resolution 64 388 420 caustic_cubemap_resolution 256 389 421 photon_map_material GTP/Station/PhotonMap_HitEnv 390 caustic_map_material GTP/Station/CauCube_Point Sprite422 caustic_map_material GTP/Station/CauCube_Point 391 423 //caustic_map_material GTP/Station/CauCube_Triangles 392 424 //use_triangles true -
GTP/trunk/App/Demos/Illum/Ogre/Media/Station/stationIllum.hlsl
r2507 r2527 156 156 } 157 157 158 float Caustics(samplerCUBE cauMap, samplerCUBE distMap, float3 dir, float attenuation)158 float3 Caustics(samplerCUBE cauMap, samplerCUBE distMap, float3 dir, float attenuation) 159 159 { 160 160 float d = length(dir); … … 163 163 caustics *= 1.0 - saturate(d / attenuation); 164 164 165 return caustics.r ;165 return caustics.rgb; 166 166 }
Note: See TracChangeset
for help on using the changeset viewer.