Ignore:
Timestamp:
06/08/07 01:15:25 (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

    r2328 r2425  
    165165                                                uniform sampler2D illumVolume : register(s2), 
    166166                                                uniform float farplane, 
    167                                                 uniform float nearplane                                          
     167                                                uniform float nearplane, 
     168                                                uniform float4 color                                             
    168169                                                        ) : COLOR 
    169170{ 
    170         float4 Color = 0; 
     171        float4 Color = IN.Color * color; 
    171172        float4 impostor = tex2D(Texture, IN.texCoord); 
    172173        float f = 1.0 - impostor.g; 
     
    192193         
    193194///final color   
    194         Color = float4(1, 1, 1, alpha) * IN.Color; 
     195        Color.a *= alpha; 
     196 
    195197    return Color;  
    196198         
Note: See TracChangeset for help on using the changeset viewer.