fragment_program DOF_Blur_ps glsl glsles glslang hlsl { source compositors/DoF_Gaussian3x3.frag default_params { param_named_auto vpSize viewport_size } } fragment_program DOF_Blend_ps_GL glsl glsles { source compositors/DoF_Blend.frag default_params { param_named RT int 0 param_named depth int 1 param_named blur int 2 } } fragment_program DOF_Blend_ps_GLSLang glslang { source compositors/DoF_Blend.frag } fragment_program DOF_Blend_ps_HLSL hlsl { source compositors/DoF_Blend.frag target ps_3_0 } fragment_program DOF_Blend_ps unified { delegate DOF_Blend_ps_GL delegate DOF_Blend_ps_GLSLang delegate DOF_Blend_ps_HLSL default_params { param_named dofBlur float 1.0 param_named dofRange float 0.004 param_named_auto pixelSizeScene viewport_size shared_params_ref SO3CameraParams } } //Effect: Depth of Field material Ogre/Compositor/DOF_Blur { technique { pass { vertex_program_ref Ogre/Compositor/StdQuad_Tex2_vp { } fragment_program_ref DOF_Blur_ps { } texture_unit source { tex_address_mode mirror } } } } material Ogre/Compositor/DOF_Blend { technique { pass { vertex_program_ref Ogre/Compositor/StdQuad_Tex2_vp { } fragment_program_ref DOF_Blend_ps { } texture_unit { tex_address_mode clamp } texture_unit { tex_address_mode border } texture_unit { tex_address_mode mirror } } } }