Changeset 7883 for data/trunk
- Timestamp:
- Feb 14, 2011, 12:15:39 PM (14 years ago)
- Location:
- data/trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/materials/Bloom.material
r7708 r7883 69 69 texture_unit RT 70 70 { 71 71 tex_coord_set 0 72 72 tex_address_mode clamp 73 73 filtering linear linear linear … … 92 92 texture_unit RT 93 93 { 94 94 tex_coord_set 0 95 95 tex_address_mode clamp 96 96 filtering linear linear linear … … 120 120 texture_unit 121 121 { 122 122 tex_coord_set 0 123 123 tex_address_mode clamp 124 124 filtering linear linear linear … … 144 144 texture_unit 145 145 { 146 146 tex_coord_set 0 147 147 tex_address_mode clamp 148 148 filtering linear linear linear … … 152 152 } 153 153 154 /// Overlay quad 154 fragment_program Ogre/Compositor/BloomFP cg 155 { 156 source BloomFP.cg 157 entry_point Bloom_ps 158 profiles ps_2_0 arbfp1 159 } 160 155 161 material Ogre/Compositor/BloomBlend 156 162 { 157 technique 158 { 159 pass 160 { 161 lighting on 162 diffuse 0.0 0.0 0.0 0.5 163 specular 0.0 0.0 0.0 0.0 164 ambient 0.0 0.0 0.0 165 emissive 1.0 1.0 1.0 166 cull_hardware none 167 depth_check off 168 scene_blend alpha_blend 163 technique 164 { 169 165 170 texture_unit 171 { 172 tex_coord_set 0 166 pass 167 { 168 cull_hardware none 169 cull_software none 170 depth_func always_pass 171 172 vertex_program_ref Ogre/Compositor/StdQuad_Tex2a_vp 173 { 174 } 175 176 fragment_program_ref Ogre/Compositor/BloomFP 177 { 178 } 179 180 texture_unit 181 { 182 tex_coord_set 0 173 183 tex_address_mode clamp 174 filtering linear linear linear 175 } 176 } 177 } 184 filtering trilinear 185 } 186 187 texture_unit 188 { 189 tex_coord_set 0 190 tex_address_mode clamp 191 filtering trilinear 192 } 193 } 194 } 178 195 } -
data/trunk/materials/Shaders.compositor
r7708 r7883 6 6 { 7 7 // Temporary textures 8 texture rt0 128 128 PF_A8R8G8B8 9 texture rt1 128 128 PF_A8R8G8B8 8 texture rt_output target_width target_height PF_R8G8B8 9 texture rt0 128 128 PF_R8G8B8 10 texture rt1 128 128 PF_R8G8B8 11 12 target rt_output 13 { 14 // Render output from previous compositor (or original scene) 15 input previous 16 } 17 18 target rt0 19 { 20 // Start with clear texture 21 input none 22 // Vertical blur pass 23 pass render_quad 24 { 25 // Renders a fullscreen quad with a material 26 material Ogre/Compositor/Blur0 27 input 0 rt_output 28 } 29 } 10 30 11 31 target rt1 12 32 { 13 // Render output from previous compositor (or original scene)14 input previous15 }16 17 target rt018 {19 33 // Start with clear texture 20 34 input none 21 // Vertical blur pass22 pass render_quad23 {24 // Renders a fullscreen quad with a material25 material Ogre/Compositor/Blur026 input 0 rt127 }28 }29 30 target rt131 {32 // Start with clear texture33 input none34 35 // Horizontal blur pass 35 36 pass render_quad … … 44 45 { 45 46 // Start with clear output 46 input previous47 input none 47 48 // Draw a fullscreen quad 48 49 pass render_quad … … 50 51 // Renders a fullscreen quad with a material 51 52 material Ogre/Compositor/BloomBlend 52 input 0 rt1 53 input 0 rt_output 54 input 1 rt1 53 55 } 54 56 }
Note: See TracChangeset
for help on using the changeset viewer.