[5119] | 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 | { |
---|
[7883] | 71 | tex_coord_set 0 |
---|
[5119] | 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 | { |
---|
[7883] | 94 | tex_coord_set 0 |
---|
[5119] | 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 | { |
---|
[7883] | 122 | tex_coord_set 0 |
---|
[5119] | 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 | { |
---|
[7883] | 146 | tex_coord_set 0 |
---|
[5119] | 147 | tex_address_mode clamp |
---|
| 148 | filtering linear linear linear |
---|
| 149 | } |
---|
| 150 | } |
---|
| 151 | } |
---|
| 152 | } |
---|
| 153 | |
---|
[7883] | 154 | fragment_program Ogre/Compositor/BloomFP cg |
---|
| 155 | { |
---|
| 156 | source BloomFP.cg |
---|
| 157 | entry_point Bloom_ps |
---|
| 158 | profiles ps_2_0 arbfp1 |
---|
| 159 | } |
---|
| 160 | |
---|
[5119] | 161 | material Ogre/Compositor/BloomBlend |
---|
| 162 | { |
---|
[7883] | 163 | technique |
---|
| 164 | { |
---|
[5119] | 165 | |
---|
[7883] | 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 |
---|
[5119] | 183 | tex_address_mode clamp |
---|
[7883] | 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 | } |
---|
[5119] | 195 | } |
---|