Last change
on this file since 12033 was
7708,
checked in by dafrick, 14 years ago
|
Merging cleanup branch. You will need to update your data repository as well as your local copy of the code.
|
-
Property svn:eol-style set to
native
|
File size:
1.7 KB
|
Line | |
---|
1 | compositor MotionBlur |
---|
2 | { |
---|
3 | technique |
---|
4 | { |
---|
5 | // Temporary textures |
---|
6 | texture scene target_width target_height PF_A8R8G8B8 |
---|
7 | texture sum target_width target_height PF_A8R8G8B8 |
---|
8 | texture temp target_width target_height PF_A8R8G8B8 |
---|
9 | |
---|
10 | target scene |
---|
11 | { |
---|
12 | // Render output from previous compositor (or original scene) |
---|
13 | input previous |
---|
14 | } |
---|
15 | target sum |
---|
16 | { |
---|
17 | // Render this target pass only initially, on the first frame that |
---|
18 | // this effect was enabled. This makes sure the sum texture |
---|
19 | // does not start with randomness. |
---|
20 | only_initial on |
---|
21 | |
---|
22 | input previous |
---|
23 | } |
---|
24 | target temp |
---|
25 | { |
---|
26 | // Start with clear texture |
---|
27 | input none |
---|
28 | // Combine scene and sum texture |
---|
29 | pass render_quad |
---|
30 | { |
---|
31 | // Renders a fullscreen quad with a material |
---|
32 | material Ogre/Compositor/Combine |
---|
33 | input 0 scene |
---|
34 | input 1 sum |
---|
35 | } |
---|
36 | } |
---|
37 | target sum |
---|
38 | { |
---|
39 | // Start with clear texture |
---|
40 | input none |
---|
41 | // Copy temporary back to sum |
---|
42 | pass render_quad |
---|
43 | { |
---|
44 | // Renders a fullscreen quad with a material |
---|
45 | material Ogre/Compositor/Copyback |
---|
46 | input 0 temp |
---|
47 | } |
---|
48 | } |
---|
49 | target_output |
---|
50 | { |
---|
51 | // Start with clear output |
---|
52 | input none |
---|
53 | // Draw a fullscreen quad with the blur |
---|
54 | pass render_quad |
---|
55 | { |
---|
56 | // Renders a fullscreen quad with a material |
---|
57 | material Ogre/Compositor/MotionBlur |
---|
58 | input 0 sum |
---|
59 | } |
---|
60 | } |
---|
61 | } |
---|
62 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.