Changeset 1424 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_HPS_Smoke_L.hlsl
- Timestamp:
- 09/21/06 08:35:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_HPS_Smoke_L.hlsl
r1355 r1424 7 7 float r : TEXCOORD2; 8 8 float4 center : TEXCOORD3; 9 float4 Color : TEXCOORD4; 9 10 }; 10 11 11 12 VS_OUT HPS_Smoke_L_VS (float4 position : POSITION, 12 13 float4 texCoord : TEXCOORD0, 13 14 float4 Color: COLOR0, 15 uniform float baseRadius, 14 16 uniform float4x4 worldView, 15 17 uniform float4x4 Proj, … … 17 19 { 18 20 VS_OUT OUT; 19 20 float2 offset = texCoord.zw; 21 float2 offset = texCoord.zw * baseRadius; 21 22 float4 cPosition; 22 23 cPosition = mul(worldView, position); … … 24 25 cPosition.xy += offset; 25 26 OUT.cPosition = cPosition; 26 OUT.r = abs( texCoord.z);27 OUT.r = abs(offset.x); 27 28 28 29 OUT.hPosition = mul( Proj, cPosition ); 29 30 30 OUT.texCoord = texCoord.xy; 31 OUT.texCoord = texCoord.xy; 32 OUT.Color = Color; 31 33 return OUT; 32 34 } … … 39 41 float4 Color = 0; 40 42 Color = tex2D(Texture, IN.texCoord); 41 Color = float4(1, 1, 1, Color.a) ;43 Color = float4(1, 1, 1, Color.a) * IN.Color; 42 44 return Color; 43 45 }
Note: See TracChangeset
for help on using the changeset viewer.