Ignore:
Timestamp:
09/21/06 08:35:22 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

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

    r1355 r1424  
    77        float r                         : TEXCOORD2;     
    88        float4 center           : TEXCOORD3; 
     9        float4 Color            : TEXCOORD4;     
    910}; 
    1011 
    1112VS_OUT HPS_Smoke_L_VS (float4 position : POSITION,       
    1213                float4 texCoord : TEXCOORD0, 
    13                  
     14                float4 Color: COLOR0, 
     15                uniform float baseRadius, 
    1416                uniform float4x4 worldView, 
    1517                uniform float4x4 Proj, 
     
    1719{ 
    1820        VS_OUT OUT; 
    19    
    20         float2 offset = texCoord.zw; 
     21    float2 offset = texCoord.zw * baseRadius; 
    2122        float4 cPosition;    
    2223        cPosition = mul(worldView, position); 
     
    2425        cPosition.xy += offset;                          
    2526        OUT.cPosition = cPosition; 
    26         OUT.r = abs(texCoord.z);                 
     27        OUT.r = abs(offset.x);           
    2728  
    2829    OUT.hPosition = mul( Proj, cPosition ); 
    2930      
    30     OUT.texCoord = texCoord.xy;     
     31    OUT.texCoord = texCoord.xy;   
     32    OUT.Color = Color;   
    3133        return OUT; 
    3234}  
     
    3941        float4 Color = 0; 
    4042        Color = tex2D(Texture, IN.texCoord); 
    41         Color = float4(1, 1, 1, Color.a); 
     43        Color = float4(1, 1, 1, Color.a) * IN.Color; 
    4244        return Color;  
    4345} 
Note: See TracChangeset for help on using the changeset viewer.