Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SuperOrxoBros_HS18/data_extern/materials/Bloom.material @ 12175

Last change on this file since 12175 was 12175, checked in by siramesh, 5 years ago

Super Orxo Bros (Sidharth Ramesh, Nisa Balta, Jeff Ren)

File size: 2.8 KB
Line 
1//DirectX 9.0 HLSL Vertex Shader vs_1_1
2vertex_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
10fragment_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
18vertex_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
26fragment_program Blur1_ps20 hlsl
27{
28        source Blur1_ps20.hlsl
29        target ps_2_0
30        entry_point main
31}
32
33vertex_program Blur0_vs_glsl glsl
34{
35        source Blur0_vs.glsl
36}
37vertex_program Blur1_vs_glsl glsl
38{
39        source Blur1_vs.glsl
40}
41fragment_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
51material 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
102material 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
154fragment_program Ogre/Compositor/BloomFP cg
155{
156        source BloomFP.cg
157        entry_point Bloom_ps
158        profiles ps_2_0 arbfp1
159}
160
161material Ogre/Compositor/BloomBlend
162{
163        technique
164        {
165
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
183                                tex_address_mode clamp
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        }
195}
Note: See TracBrowser for help on using the repository browser.