- Timestamp:
- 06/06/07 10:25:13 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc/GTPPostProc.hlsl
r2398 r2414 48 48 IN.texCoord += float2(0.5/width, 0.5/height); 49 49 return tex2D(Texture1,IN.texCoord ) + tex2D(Texture2,IN.texCoord ); 50 } 51 52 float4 Combine_PS(VS_OUT IN, 53 uniform float width, 54 uniform float height, 55 uniform float weight1, 56 uniform float weight2, 57 uniform sampler2D Texture1: register(s0), 58 uniform sampler2D Texture2: register(s1) 59 ):COLOR 60 { 61 IN.texCoord += float2(0.5/width, 0.5/height); 62 return tex2D(Texture1,IN.texCoord ) * weight1 + tex2D(Texture2,IN.texCoord ) * weight2; 50 63 } 51 64 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc/GTPPostProc.material
r2398 r2414 95 95 } 96 96 97 material GTP/PostProc/Combine 98 { 99 technique maintechnique 100 { 101 pass mainpass 102 { 103 vertex_program_ref GTP/PostProc/PostProc_VS 104 { 105 106 } 107 fragment_program_ref GTP/PostProc/Combine_PS 108 { 109 param_named_auto width viewport_width 110 param_named_auto height viewport_height 111 param_named weight1 float 1.0 112 param_named weight2 float 1.0 113 } 114 texture_unit 115 { 116 // filtering none 117 } 118 texture_unit 119 { 120 // filtering none 121 } 122 } 123 } 124 } 125 97 126 material GTP/PostProc/Luminance 98 127 { … … 122 151 material GTP/PostProc/GlowCut 123 152 { 124 technique 125 { 126 pass 153 technique maintechnique 154 { 155 pass mainpass 127 156 { 128 157 vertex_program_ref GTP/PostProc/PostProc_VS … … 133 162 param_named_auto width viewport_width 134 163 param_named_auto height viewport_height 135 param_named cutValue float 35 .0164 param_named cutValue float 35 136 165 //param_named cutValue float 4.5 137 166 param_named timeBlur float 0.4 … … 151 180 material GTP/PostProc/GlowBlurH 152 181 { 153 technique 154 { 155 pass 182 technique maintechnique 183 { 184 pass mainpass 156 185 { 157 186 vertex_program_ref GTP/PostProc/PostProc_VS … … 176 205 material GTP/PostProc/GlowBlurV 177 206 { 178 technique 179 { 180 pass 207 technique maintechnique 208 { 209 pass mainpass 181 210 { 182 211 vertex_program_ref GTP/PostProc/PostProc_VS … … 216 245 param_named_auto height viewport_height 217 246 param_named Stretch float 1.2 218 param_named_auto timeBlur frame_time 0. 2247 param_named_auto timeBlur frame_time 0.6 219 248 //param_named timeBlur float 1 220 249 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPostProc/GTPPostProc.program
r2398 r2414 31 31 source GTPPostProc.hlsl 32 32 entry_point Add_PS 33 target ps_2_0 34 } 35 36 fragment_program GTP/PostProc/Combine_PS hlsl 37 { 38 source GTPPostProc.hlsl 39 entry_point Combine_PS 33 40 target ps_2_0 34 41 }
Note: See TracChangeset
for help on using the changeset viewer.