Shaders/g bokehblur

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m
 
Line 2: Line 2:
 
|Description=A bokeh blur shader which applies screen blur depending on distance.
 
|Description=A bokeh blur shader which applies screen blur depending on distance.
 
|Parameters=
 
|Parameters=
{{ShaderParameter|IMaterial|depthtext|The strength of the blur}}
+
{{ShaderParameter|IMaterial|depthtext|The depth texture, usually should be "_rt_FullFrameFB"}}
 
{{ShaderParameter|number|focus|The focus distance?}}
 
{{ShaderParameter|number|focus|The focus distance?}}
 
{{ShaderParameter|number|focusradius|The focus radius?}}
 
{{ShaderParameter|number|focusradius|The focus radius?}}
 
{{ShaderParameter|number|size|The strength of the blur}}
 
{{ShaderParameter|number|size|The strength of the blur}}
 
}}
 
}}

Latest revision as of 22:04, 28 September 2019

A bokeh blur shader which applies screen blur depending on distance.

Type Name Description
IMaterial $depthtext The depth texture, usually should be "_rt_FullFrameFB"
number $focus The focus distance?
number $focusradius The focus radius?
number $size The strength of the blur
Personal tools
Navigation