Garry's Mod Wiki

Revision Difference

Global.DrawTexturize#515991

<function name="DrawTexturize" parent="Global" type="libraryfunc"> <description>Draws the texturize shader, which replaces each pixel on your screen with a different part of the texture depending on its brightness. See [g_texturize](/gmod/Shaders/g_texturize) for information on making the texture.</description> <realm>Client</realm> <args> <arg name="Scale" type="number">Scale of the texture. A smaller number creates a larger texture.</arg> <arg name="BaseTexture" type="number">This will be the texture to use in the effect. Make sure you use &lt;page&gt;Global.Material&lt;/page&gt; to get the texture number</arg> </args> </function> ⤶ {{Example⤶ | Description = Draws the texturize shader with a pattern texture.| Code = function GM:RenderScreenspaceEffects()⤶ ⤶ ```⤶ ⤶ <example>⤶ <description>Draws the texturize shader with a pattern texture.</description>⤶ <code>⤶ function GM:RenderScreenspaceEffects()⤶ DrawTexturize(1, Material("pp/texturize/pattern1.png")) ```⤶ ⤶ ⤶ end⤶ }}⤶ end⤶ </code>⤶ ⤶ </example>