Garry's Mod Wiki

Revision Difference

Shaders/g_sunbeams#517097

<cat>shader</cat> <shader> <description>Creates a "sun beam" effect.</description> <parameters>{{ShaderParameter|number|darken|The strength of the darkening</parameters>⤶ <parameters>⤶ <item name="darken" type="number">The strength of the darkening</item>⤶ ⤶ <item name="multiply" type="number">The strength of the multplier</item>⤶ ⤶ <item name="sunx" type="number">The screen x position of the sun (from 0 - 1)</item>⤶ ⤶ <item name="suny" type="number">The screen y position of the sun (from 0 - 1)</item>⤶ ⤶ <item name="sunsize" type="number">The "size" of the sun</item>⤶ </parameters>⤶ </shader> ⤶ ⤶ {{ShaderParameter|number|multiply|The strength of the multplier}}⤶ {{ShaderParameter|number|sunx|The screen x position of the sun (from 0 - 1)}}⤶ {{ShaderParameter|number|suny|The screen y position of the sun (from 0 - 1)}}⤶ {{ShaderParameter|number|sunsize|The "size" of the sun}}⤶ }}