Changeset 1355


Ignore:
Timestamp:
09/13/06 11:23:27 (18 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/Media
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_CauCube.hlsl

    r1347 r1355  
    3232                 
    3333                float intensity = 0.5; 
    34                 /* 
     34                 
    3535                //read four neighbours 
    3636                float valids = 0; 
     
    6767                 
    6868                float avrdist = sumdist / valids; 
    69                 intensity = saturate(2.0 - avrdist) / 2.0; 
    70                 */ 
     69                float maxdist = 0.1; 
     70                intensity = max(maxdist - avrdist, 0.0) / maxdist; 
     71                 
    7172                OUT.color = float4(1,1,1,intensity); 
    7273        }   
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_HPS_Smoke_L.hlsl

    r1341 r1355  
    3838{ 
    3939        float4 Color = 0; 
    40         Color = tex2D(Texture, IN.texCoord).a; 
    41          
     40        Color = tex2D(Texture, IN.texCoord); 
     41        Color = float4(1, 1, 1, Color.a); 
    4242        return Color;  
    4343} 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_HPS_Smoke_S.hlsl

    r1339 r1355  
    5555         f = (fPosition.z / fPosition.w + 1.0) / 2.0; 
    5656         b = (bPosition.z / bPosition.w + 1.0) / 2.0; 
    57          alpha = w / IN.r;       
     57          
     58         alpha = pow(w / IN.r, 4) * 0.5;                 
    5859        } 
    5960        else 
    6061         discard; 
    6162         
    62         Color.r = f; 
    63         Color.g = 1 - b; 
     63        Color.r = b; 
     64        Color.g = 1 - f; 
    6465        Color.a = alpha; 
     66        //Color.a = tex2D(Texture, IN.texCoord).a * 0.2; 
    6567         
    6668         
  • GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools_HPS.material

    r1339 r1355  
    3232                        } 
    3333                         
     34                        texture_unit 
     35                        { 
     36                                texture pamacs.dds 
     37                        } 
     38                         
    3439                        depth_check off 
    35                         //scene_blend_op min 
    36                         //scene_blend_op_alpha add 
    37                         scene_blend one one 
     40                        scene_blend_op max 
     41                        scene_blend_op_alpha add 
     42                        scene_blend_alpha one one_minus_src_alpha 
    3843 
    3944                } 
     
    8489                        } 
    8590                         
    86                         //depth_check off                        
    87                         //scene_blend_alpha add 
     91                        depth_check off                  
     92                        scene_blend alpha_blend 
    8893                         
    8994                        texture_unit 
  • GTP/trunk/App/Demos/Illum/Ogre/Media/particle/GameTools.particle

    r1339 r1355  
    9191        material        HPS_SMOKE_S 
    9292        renderer sprite 
    93     particle_width  20 
    94     particle_height 20 
     93    particle_width  40 
     94    particle_height 40 
    9595    cull_each       false 
    96     quota           30 
     96    quota           100 
    9797    billboard_type  point 
    9898     
    9999    // Area emitter 
    100     emitter Box 
     100    emitter Point 
    101101    { 
    102102       // colour 0.7 0.8 0.3 0 
     
    104104                colour_range_end 0.8 1 0.5 0 
    105105 
    106         angle           30 
    107         emission_rate   6 
     106        angle           160 
     107        emission_rate   20 
    108108        time_to_live    3 
    109109        direction       0 1 0 
    110         velocity        0 
    111         width           120 
    112         height          120 
    113         depth           30 
     110        velocity        20 
     111       // width           120 
     112      //  height          120 
     113       // depth           30 
    114114    }   
    115115 
Note: See TracChangeset for help on using the changeset viewer.