Changeset 2328
- Timestamp:
- 04/16/07 20:02:58 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/Particles.particle
r2326 r2328 4 4 5 5 material GTP/Moria/Smoke_L_Depth_Illum 6 particle_width 2.27 particle_height 2.26 particle_width 4.2 7 particle_height 4.2 8 8 cull_each false 9 quota 6009 quota 700 10 10 sorted true 11 11 //billboard_type point … … 19 19 20 20 angle 30 21 emission_rate 1 021 emission_rate 15 22 22 time_to_live 10 23 23 direction 0 1 0 … … 25 25 width 20 26 26 height 20 27 depth 0. 827 depth 0.6 28 28 } 29 29 30 30 affector ColourFader2 31 31 { 32 alpha1 +0.1 33 alpha2 -0.1 34 state_change 0.532 alpha1 +0.15 33 alpha2 -0.15 34 state_change 5 35 35 } 36 36 } … … 41 41 material GTP/HPS/Smoke_S 42 42 renderer sprite 43 particle_width 2.544 particle_height 2.543 particle_width 1.5 44 particle_height 1.5 45 45 cull_each false 46 46 quota 400 … … 57 57 time_to_live 6 58 58 direction 0 1 0 59 velocity 0. 559 velocity 0.25 60 60 61 61 width 0.5 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_HPS.hlsl
r2327 r2328 313 313 314 314 float4 HPS_Large_Depth_Illum_PS(VS_OUT_DEPTH_ILLUM IN, 315 uniform float near Plane,315 uniform float nearplane, 316 316 uniform sampler2D Texture : register(s0), 317 317 uniform sampler2D depthTexture : register(s1), … … 339 339 float backDepth = IN.cPosition.z + size * (b - 0.5); 340 340 float B = min(sceneDepth, backDepth); 341 float F = max(frontDepth, nearPlane);341 float F = max(frontDepth, 0.01); 342 342 float ds = B - F; 343 343 alpha = ds / (backDepth - frontDepth); 344 alpha = 344 alpha =saturate(alpha) * impostor.a; 345 345 } 346 346 ///identify light volume slices and interpolation … … 399 399 return Color; 400 400 } 401 402 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_Particles.material
r2327 r2328 226 226 fragment_program_ref GTP/HPS/Large_Depth_Illum_PS 227 227 { 228 param_named_auto near Plane near_clip_distance228 param_named_auto nearplane near_clip_distance 229 229 } 230 230 //impostor texture … … 246 246 } 247 247 } 248 249 248 250 249 251 material GTP/HPS/Smoke_IllumVolume -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_Particles.program
r2024 r2328 111 111 target ps_2_0 112 112 } 113
Note: See TracChangeset
for help on using the changeset viewer.