Changeset 2328 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials
- Timestamp:
- 04/16/07 20:02:58 (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/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.