Garry's Mod Wiki

Revision Difference

Shaders/g_bokehblur#517109

<cat>shader</cat> <shader> <description>A bokeh blur shader which applies screen blur depending on distance.</description> <parameters>{{ShaderParameter|IMaterial|depthtext|The depth texture, usually should be "_rt_FullFrameFB"</parameters>⤶ <parameters>⤶ <item name="depthtext" type="IMaterial">The depth texture, usually should be "_rt_FullFrameFB"</item>⤶ ⤶ <item name="focus" type="number">The focus distance?</item>⤶ ⤶ <item name="focusradius" type="number">The focus radius?</item>⤶ ⤶ <item name="size" type="number">The strength of the blur</item>⤶ </parameters>⤶ </shader> ⤶ ⤶ {{ShaderParameter|number|focus|The focus distance?}}⤶ {{ShaderParameter|number|focusradius|The focus radius?}}⤶ {{ShaderParameter|number|size|The strength of the blur}}⤶ }}