Revision Difference
Global.DrawToyTown#527889
<function name="DrawToyTown" parent="Global" type="libraryfunc">
<description>Draws the toy town shader, which blurs the top and bottom of your screen. This can make very large objects look like toys, hence the name.</description>
<realm>Client</realm>
<file line="12-L28">lua/postprocess/toytown.lua</file>⤶
<args>
<arg name="Passes" type="number">An integer determining how many times to draw the effect. A higher number creates more blur.</arg>
<arg name="Height" type="number">The amount of screen which should be blurred on the top and bottom.</arg>
</args>
</function>
<example>
<description>Draws toy town effect.</description>
<code>
function GM:RenderScreenspaceEffects()
DrawToyTown(2, ScrH()/2)
⤶
end⤶
hook.Add( "RenderScreenspaceEffects", "ToytownEffect", function()
DrawToyTown(2, ScrH() / 2)
⤶
end )⤶
</code>
⤶
</example></example>