Changeset 7883 for data/trunk/materials/Shaders.compositor
- Timestamp:
- Feb 14, 2011, 12:15:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.