Ignore:
Timestamp:
04/16/07 20:02:58 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_HPS.hlsl

    r2327 r2328  
    313313 
    314314float4 HPS_Large_Depth_Illum_PS(VS_OUT_DEPTH_ILLUM IN, 
    315                                                 uniform float nearPlane, 
     315                                                uniform float nearplane, 
    316316                                                uniform sampler2D Texture  : register(s0), 
    317317                                                uniform sampler2D depthTexture : register(s1), 
     
    339339                float backDepth = IN.cPosition.z +  size * (b - 0.5); 
    340340                float B = min(sceneDepth, backDepth); 
    341                 float F = max(frontDepth, nearPlane); 
     341                float F = max(frontDepth, 0.01); 
    342342                float ds = B - F; 
    343343                alpha = ds / (backDepth - frontDepth); 
    344                 alpha = saturate(alpha) * impostor.a; 
     344                alpha =saturate(alpha) * impostor.a; 
    345345        } 
    346346///identify light volume slices and interpolation        
     
    399399    return Color;        
    400400} 
    401  
    402  
Note: See TracChangeset for help on using the changeset viewer.