Changeset 1355 for GTP/trunk/App/Demos/Illum
- Timestamp:
- 09/13/06 11:23:27 (18 years ago)
- 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 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 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools_HPS.material
r1339 r1355 32 32 } 33 33 34 texture_unit 35 { 36 texture pamacs.dds 37 } 38 34 39 depth_check off 35 //scene_blend_op min36 //scene_blend_op_alpha add37 scene_blend one one40 scene_blend_op max 41 scene_blend_op_alpha add 42 scene_blend_alpha one one_minus_src_alpha 38 43 39 44 } … … 84 89 } 85 90 86 //depth_check off87 //scene_blend_alpha add91 depth_check off 92 scene_blend alpha_blend 88 93 89 94 texture_unit -
GTP/trunk/App/Demos/Illum/Ogre/Media/particle/GameTools.particle
r1339 r1355 91 91 material HPS_SMOKE_S 92 92 renderer sprite 93 particle_width 2094 particle_height 2093 particle_width 40 94 particle_height 40 95 95 cull_each false 96 quota 3096 quota 100 97 97 billboard_type point 98 98 99 99 // Area emitter 100 emitter Box100 emitter Point 101 101 { 102 102 // colour 0.7 0.8 0.3 0 … … 104 104 colour_range_end 0.8 1 0.5 0 105 105 106 angle 30107 emission_rate 6106 angle 160 107 emission_rate 20 108 108 time_to_live 3 109 109 direction 0 1 0 110 velocity 0111 width 120112 height 120113 depth 30110 velocity 20 111 // width 120 112 // height 120 113 // depth 30 114 114 } 115 115
Note: See TracChangeset
for help on using the changeset viewer.