Changeset 5312 for data/media/materials/scripts/Examples.compositor
- Timestamp:
- Dec 7, 2008, 4:22:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/materials/scripts/Examples.compositor
r5023 r5312 1 // Manuel's bloom2 // Needs a scene-sized rtt, but does only one render of the scene3 compositor Bloom4 {5 technique6 {7 // Temporary textures8 texture rt0 128 128 PF_A8R8G8B89 texture rt1 128 128 PF_A8R8G8B810 11 target rt112 {13 // Render output from previous compositor (or original scene)14 input previous15 }16 17 target rt018 {19 // Start with clear texture20 input none21 // 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 // Horizontal blur pass35 pass render_quad36 {37 // Renders a fullscreen quad with a material38 material Ogre/Compositor/Blur139 input 0 rt040 }41 }42 43 target_output44 {45 // Start with clear output46 input previous47 // Draw a fullscreen quad48 pass render_quad49 {50 // Renders a fullscreen quad with a material51 material Ogre/Compositor/BloomBlend52 input 0 rt153 }54 }55 }56 }57 58 compositor Glass59 {60 technique61 {62 texture rt0 target_width target_height PF_R8G8B863 64 target rt0 { input previous }65 66 target_output67 {68 // Start with clear output69 input none70 71 pass render_quad72 {73 material Ogre/Compositor/GlassPass74 input 0 rt075 }76 }77 }78 }79 80 compositor "Old TV"81 {82 technique83 {84 texture rt0 target_width target_height PF_R8G8B885 86 // render scene to a texture87 target rt0 { input previous }88 89 target_output90 {91 // Start with clear output92 input none93 94 pass render_quad95 {96 // convert the previous render target to a black and white image, add some noise, distort it,97 // then render to scene aligned quad98 material Ogre/Compositor/OldTV99 input 0 rt0100 }101 }102 }103 }104 105 106 // Black and white effect107 compositor B&W108 {109 technique110 {111 // Temporary textures112 texture rt0 target_width target_height PF_A8R8G8B8113 114 target rt0115 {116 // Render output from previous compositor (or original scene)117 input previous118 }119 120 target_output121 {122 // Start with clear output123 input none124 // Draw a fullscreen quad with the black and white image125 pass render_quad126 {127 // Renders a fullscreen quad with a material128 material Ogre/Compositor/BlackAndWhite129 input 0 rt0130 }131 }132 }133 }134 135 1 //compositor DOF // based on Blur but final pass does depth of field 136 2 //{ … … 189 55 //} 190 56 191 // Embossed (fake bump) effect192 compositor Embossed193 {194 technique195 {196 // Temporary textures197 texture rt0 target_width target_height PF_A8R8G8B8198 199 target rt0200 {201 // Render output from previous compositor (or original scene)202 input previous203 }204 205 target_output206 {207 // Start with clear output208 input none209 // Draw a fullscreen quad with the black and white image210 pass render_quad211 {212 // Renders a fullscreen quad with a material213 material Ogre/Compositor/Embossed214 input 0 rt0215 }216 }217 }218 }219 220 // SharpenEdges221 compositor Sharpen Edges222 {223 technique224 {225 // Temporary textures226 texture rt0 target_width target_height PF_A8R8G8B8227 228 target rt0229 {230 // Render output from previous compositor (or original scene)231 input previous232 }233 234 target_output235 {236 // Start with clear output237 input none238 // Draw a fullscreen quad with the black and white image239 pass render_quad240 {241 // Renders a fullscreen quad with a material242 material Ogre/Compositor/SharpenEdges243 input 0 rt0244 }245 }246 }247 }248 249 // Invert250 compositor Invert251 {252 technique253 {254 // Temporary textures255 texture rt0 target_width target_height PF_A8R8G8B8256 257 target rt0258 {259 // Render output from previous compositor (or original scene)260 input previous261 }262 263 target_output264 {265 // Start with clear output266 input none267 // Draw a fullscreen quad with the black and white image268 pass render_quad269 {270 // Renders a fullscreen quad with a material271 material Ogre/Compositor/Invert272 input 0 rt0273 }274 }275 }276 }277 278 // Posterize279 compositor Posterize280 {281 technique282 {283 // Temporary textures284 texture rt0 target_width target_height PF_A8R8G8B8285 286 target rt0287 {288 // Render output from previous compositor (or original scene)289 input previous290 }291 292 target_output293 {294 // Start with clear output295 input none296 // Draw a fullscreen quad with the black and white image297 pass render_quad298 {299 // Renders a fullscreen quad with a material300 material Ogre/Compositor/Posterize301 input 0 rt0302 }303 }304 }305 }306 307 // Laplace308 compositor Laplace309 {310 technique311 {312 // Temporary textures313 texture rt0 target_width target_height PF_A8R8G8B8314 315 target rt0316 {317 // Render output from previous compositor (or original scene)318 input previous319 }320 321 target_output322 {323 // Start with clear output324 input none325 // Draw a fullscreen quad with the black and white image326 pass render_quad327 {328 // Renders a fullscreen quad with a material329 material Ogre/Compositor/Laplace330 input 0 rt0331 }332 }333 }334 }335 336 // Tiling337 compositor Tiling338 {339 technique340 {341 // Temporary textures342 texture rt0 target_width target_height PF_A8R8G8B8343 344 target rt0345 {346 // Render output from previous compositor (or original scene)347 input previous348 }349 350 target_output351 {352 // Start with clear output353 input none354 // Draw a fullscreen quad with the black and white image355 pass render_quad356 {357 // Renders a fullscreen quad with a material358 material Ogre/Compositor/Tiling359 input 0 rt0360 }361 }362 }363 }364 365 // Old Movie366 compositor Old Movie367 {368 technique369 {370 // Temporary textures371 texture rt0 target_width target_height PF_A8R8G8B8372 373 target rt0374 {375 // Render output from previous compositor (or original scene)376 input previous377 }378 379 target_output380 {381 // Start with clear output382 input none383 // Draw a fullscreen quad with the black and white image384 pass render_quad385 {386 // Renders a fullscreen quad with a material387 material Ogre/Compositor/OldMovie388 input 0 rt0389 }390 }391 }392 }393 394 57 // HDR 395 58 compositor HDR … … 400 63 // Temporary textures 401 64 // Fullsize HDR render target, used as tone mapping source 402 65 texture rt_full target_width target_height PF_FLOAT16_RGB 403 66 // Targets used for luminance evaluation (3x3 downsample, point filtering) 404 67 texture rt_lum0 1 1 PF_FLOAT16_RGB … … 449 112 pass render_quad 450 113 { 451 114 // Downsample using a 3x3 filter 452 115 material Ogre/Compositor/HDR/Downsample3x3 453 116 input 0 rt_lum4 … … 492 155 target rt_brightpass 493 156 { 494 495 496 497 498 499 500 157 input none 158 pass render_quad 159 { 160 // Downsample using a 3x3 filter, hi-pass and tone map 161 material Ogre/Compositor/HDR/Downsample3x3Brightpass 162 input 0 rt_full 163 input 1 rt_lum0 501 164 identifier 800 502 165 } 503 166 } 504 167 … … 541 204 } 542 205 } 543 544 545 206 } 546 547 207 } 548 549 550 // Gaussian blur effect551 compositor Gaussian Blur552 {553 technique554 {555 // Temporary textures556 texture rt0 target_width target_height PF_A8R8G8B8557 texture rt1 target_width target_height PF_A8R8G8B8558 559 target rt0560 {561 // Render output from previous compositor (or original scene)562 input previous563 }564 565 target rt1566 {567 // Blur horizontally568 input none569 pass render_quad570 {571 material Ogre/Compositor/HDR/GaussianBloom572 input 0 rt0573 identifier 700574 }575 }576 577 target_output578 {579 // Start with clear output580 input none581 // Blur vertically582 pass render_quad583 {584 // Renders a fullscreen quad with a material585 material Ogre/Compositor/HDR/GaussianBloom586 input 0 rt1587 identifier 701588 }589 }590 }591 }592
Note: See TracChangeset
for help on using the changeset viewer.