Changeset 2328


Ignore:
Timestamp:
04/16/07 20:02:58 (17 years ago)
Author:
szirmay
Message:
 
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  
    44         
    55        material                GTP/Moria/Smoke_L_Depth_Illum 
    6         particle_width  2.2 
    7     particle_height 2.2 
     6        particle_width  4.2 
     7    particle_height 4.2 
    88    cull_each       false 
    9     quota           600 
     9    quota           700 
    1010    sorted                      true 
    1111    //billboard_type  point 
     
    1919 
    2020        angle           30 
    21         emission_rate   10 
     21        emission_rate   15 
    2222        time_to_live    10 
    2323        direction       0 1 0 
     
    2525        width           20        
    2626        height          20 
    27         depth           0.8 
     27        depth           0.6 
    2828    } 
    2929  
    3030    affector ColourFader2 
    3131    { 
    32        alpha1 +0.1 
    33        alpha2 -0.1 
    34        state_change 0.5 
     32       alpha1 +0.15 
     33       alpha2 -0.15 
     34       state_change 5 
    3535    } 
    3636} 
     
    4141        material        GTP/HPS/Smoke_S 
    4242        renderer sprite 
    43     particle_width  2.5 
    44     particle_height 2.5 
     43    particle_width  1.5 
     44    particle_height 1.5 
    4545    cull_each       false 
    4646    quota           400 
     
    5757        time_to_live    6 
    5858        direction       0 1 0 
    59         velocity        0.5  
     59        velocity        0.25  
    6060         
    6161        width           0.5         
  • 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  
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_Particles.material

    r2327 r2328  
    226226                        fragment_program_ref GTP/HPS/Large_Depth_Illum_PS 
    227227                        {  
    228                                 param_named_auto nearPlane near_clip_distance 
     228                                param_named_auto nearplane near_clip_distance 
    229229                        }                        
    230230                        //impostor texture 
     
    246246        } 
    247247} 
     248 
     249 
    248250 
    249251material GTP/HPS/Smoke_IllumVolume 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_Particles.program

    r2024 r2328  
    111111        target ps_2_0 
    112112} 
     113 
Note: See TracChangeset for help on using the changeset viewer.