1 | //DirectX 9.0 HLSL Vertex Shader vs_1_1 |
---|
2 | vertex_program Blur0_vs11 hlsl |
---|
3 | { |
---|
4 | source Blur0_vs11.hlsl |
---|
5 | target vs_1_1 |
---|
6 | entry_point main |
---|
7 | } |
---|
8 | |
---|
9 | //DirectX 9.0 HLSL Pixel Shader ps_2_0 |
---|
10 | fragment_program Blur0_ps20 hlsl |
---|
11 | { |
---|
12 | source Blur0_ps20.hlsl |
---|
13 | target ps_2_0 |
---|
14 | entry_point main |
---|
15 | } |
---|
16 | |
---|
17 | //DirectX 9.0 HLSL Vertex Shader vs_1_1 |
---|
18 | vertex_program Blur1_vs11 hlsl |
---|
19 | { |
---|
20 | source Blur1_vs11.hlsl |
---|
21 | target vs_1_1 |
---|
22 | entry_point main |
---|
23 | } |
---|
24 | |
---|
25 | //DirectX 9.0 HLSL Pixel Shader ps_2_0 |
---|
26 | fragment_program Blur1_ps20 hlsl |
---|
27 | { |
---|
28 | source Blur1_ps20.hlsl |
---|
29 | target ps_2_0 |
---|
30 | entry_point main |
---|
31 | } |
---|
32 | |
---|
33 | vertex_program Blur0_vs_glsl glsl |
---|
34 | { |
---|
35 | source Blur0_vs.glsl |
---|
36 | } |
---|
37 | vertex_program Blur1_vs_glsl glsl |
---|
38 | { |
---|
39 | source Blur1_vs.glsl |
---|
40 | } |
---|
41 | fragment_program Blur_ps_glsl glsl |
---|
42 | { |
---|
43 | source Blur_ps.glsl |
---|
44 | default_params |
---|
45 | { |
---|
46 | param_named tex0 int 0 |
---|
47 | } |
---|
48 | } |
---|
49 | |
---|
50 | //Effect: Bloom |
---|
51 | material Ogre/Compositor/Blur0 |
---|
52 | { |
---|
53 | technique |
---|
54 | { |
---|
55 | //Rendering Pass: Blur0 (pass index: #1 ) |
---|
56 | pass |
---|
57 | { |
---|
58 | //State: D3DRS_CULLMODE, Value : D3DCULL_NONE |
---|
59 | cull_hardware none |
---|
60 | cull_software none |
---|
61 | depth_check off |
---|
62 | |
---|
63 | fragment_program_ref Blur0_ps20 |
---|
64 | { |
---|
65 | } |
---|
66 | vertex_program_ref Blur0_vs11 |
---|
67 | { |
---|
68 | } |
---|
69 | texture_unit RT |
---|
70 | { |
---|
71 | tex_coord_set 0 |
---|
72 | tex_address_mode clamp |
---|
73 | filtering linear linear linear |
---|
74 | } |
---|
75 | } |
---|
76 | } |
---|
77 | technique |
---|
78 | { |
---|
79 | //Rendering Pass: Blur0 (pass index: #1 ) |
---|
80 | pass |
---|
81 | { |
---|
82 | cull_hardware none |
---|
83 | cull_software none |
---|
84 | depth_check off |
---|
85 | |
---|
86 | fragment_program_ref Blur_ps_glsl |
---|
87 | { |
---|
88 | } |
---|
89 | vertex_program_ref Blur0_vs_glsl |
---|
90 | { |
---|
91 | } |
---|
92 | texture_unit RT |
---|
93 | { |
---|
94 | tex_coord_set 0 |
---|
95 | tex_address_mode clamp |
---|
96 | filtering linear linear linear |
---|
97 | } |
---|
98 | } |
---|
99 | } |
---|
100 | } |
---|
101 | |
---|
102 | material Ogre/Compositor/Blur1 |
---|
103 | { |
---|
104 | technique |
---|
105 | { |
---|
106 | |
---|
107 | //Rendering Pass: Blur1 (pass index: #2 ) |
---|
108 | pass |
---|
109 | { |
---|
110 | cull_hardware none |
---|
111 | cull_software none |
---|
112 | depth_check off |
---|
113 | |
---|
114 | fragment_program_ref Blur1_ps20 |
---|
115 | { |
---|
116 | } |
---|
117 | vertex_program_ref Blur1_vs11 |
---|
118 | { |
---|
119 | } |
---|
120 | texture_unit |
---|
121 | { |
---|
122 | tex_coord_set 0 |
---|
123 | tex_address_mode clamp |
---|
124 | filtering linear linear linear |
---|
125 | } |
---|
126 | } |
---|
127 | } |
---|
128 | technique |
---|
129 | { |
---|
130 | |
---|
131 | //Rendering Pass: Blur1 (pass index: #2 ) |
---|
132 | pass |
---|
133 | { |
---|
134 | cull_hardware none |
---|
135 | cull_software none |
---|
136 | depth_func always_pass |
---|
137 | |
---|
138 | fragment_program_ref Blur_ps_glsl |
---|
139 | { |
---|
140 | } |
---|
141 | vertex_program_ref Blur1_vs_glsl |
---|
142 | { |
---|
143 | } |
---|
144 | texture_unit |
---|
145 | { |
---|
146 | tex_coord_set 0 |
---|
147 | tex_address_mode clamp |
---|
148 | filtering linear linear linear |
---|
149 | } |
---|
150 | } |
---|
151 | } |
---|
152 | } |
---|
153 | |
---|
154 | /// Overlay quad |
---|
155 | material Ogre/Compositor/BloomBlend |
---|
156 | { |
---|
157 | technique |
---|
158 | { |
---|
159 | pass |
---|
160 | { |
---|
161 | lighting on |
---|
162 | diffuse 0.0 0.0 0.0 0.8 |
---|
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 |
---|
169 | |
---|
170 | texture_unit |
---|
171 | { |
---|
172 | tex_coord_set 0 |
---|
173 | tex_address_mode clamp |
---|
174 | filtering linear linear linear |
---|
175 | } |
---|
176 | } |
---|
177 | } |
---|
178 | } |
---|