Changeset 1355 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs
- Timestamp:
- 09/13/06 11:23:27 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_CauCube.hlsl
r1347 r1355 32 32 33 33 float intensity = 0.5; 34 /*34 35 35 //read four neighbours 36 36 float valids = 0; … … 67 67 68 68 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 71 72 OUT.color = float4(1,1,1,intensity); 72 73 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_HPS_Smoke_L.hlsl
r1341 r1355 38 38 { 39 39 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); 42 42 return Color; 43 43 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_HPS_Smoke_S.hlsl
r1339 r1355 55 55 f = (fPosition.z / fPosition.w + 1.0) / 2.0; 56 56 b = (bPosition.z / bPosition.w + 1.0) / 2.0; 57 alpha = w / IN.r; 57 58 alpha = pow(w / IN.r, 4) * 0.5; 58 59 } 59 60 else 60 61 discard; 61 62 62 Color.r = f;63 Color.g = 1 - b;63 Color.r = b; 64 Color.g = 1 - f; 64 65 Color.a = alpha; 66 //Color.a = tex2D(Texture, IN.texCoord).a * 0.2; 65 67 66 68
Note: See TracChangeset
for help on using the changeset viewer.