- Timestamp:
- 01/24/07 21:44:30 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_Particles.material
r2024 r2054 31 31 technique 32 32 { 33 33 pass 34 34 { 35 36 35 IllumTechniques 36 { 37 37 RenderTechnique SphericalBillboard 38 38 { 39 39 texture_unit_id 1 40 } 41 } 42 scene_blend src_alpha one 43 //scene_blend src_alpha one_minus_src_alpha 44 depth_write off 45 depth_check off 46 vertex_program_ref GTP/Particles/SB_Sprite_VS 47 { 48 param_named_auto worldView worldview_matrix 49 param_named_auto Proj projection_matrix 50 param_named_auto width viewport_width 51 param_named_auto height viewport_height 52 } 53 fragment_program_ref GTP/Particles/SB_Sprite_PS 54 { 55 param_named_auto farplane far_clip_distance 56 param_named_auto nearplane near_clip_distance 57 } 58 texture_unit 59 { 60 anim_texture smokealpha.tga 32 2.0 61 //texture flare.png 62 } 63 //scene depth texture 64 texture_unit 65 { 66 filtering none 67 } 68 texture_unit 69 { 70 texture planck.tga 71 } 40 } 41 } 42 scene_blend src_alpha one 43 //scene_blend src_alpha one_minus_src_alpha 44 depth_write off 45 depth_check off 46 vertex_program_ref GTP/Particles/SB_Sprite_VS 47 { 48 param_named_auto worldView worldview_matrix 49 param_named_auto Proj projection_matrix 50 param_named_auto width viewport_width 51 param_named_auto height viewport_height 52 } 53 fragment_program_ref GTP/Particles/SB_Sprite_PS 54 { 55 param_named_auto farplane far_clip_distance 56 param_named_auto nearplane near_clip_distance 57 param_named color float4 3 3 3 1 58 } 59 texture_unit 60 { 61 anim_texture smokealpha.tga 32 2.0 62 //texture flare.png 63 } 64 //scene depth texture 65 texture_unit 66 { 67 filtering none 68 } 69 texture_unit 70 { 71 texture planck.tga 72 } 72 73 } 73 74 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPParticles/GTP_Sprite.hlsl
r2024 r2054 100 100 uniform float nearplane, 101 101 uniform float farplane, 102 uniform sampler2D colorTexture : register(s0), 103 uniform sampler2D DepthMap : register(s1), 104 uniform sampler2D PlanckMap : register(s2) 102 uniform float4 color, 103 uniform sampler2D colorTexture : register(s0), 104 uniform sampler2D DepthMap : register(s1), 105 uniform sampler2D PlanckMap : register(s2) 105 106 ) : COLOR 106 107 { … … 137 138 Color.rgb = tex2D( PlanckMap, Color.aa).rgb; 138 139 139 return Color ;140 return Color * color; 140 141 } 141 142
Note: See TracChangeset
for help on using the changeset viewer.