Garry's Mod Wiki

Garry's Mod Wiki

  DrawTexturize( number Scale, number BaseTexture )

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 for information on making the texture.

Arguments

1 number Scale
Scale of the texture. A smaller number creates a larger texture.
2 number BaseTexture
This will be the texture to use in the effect. Make sure you use Material to get the texture number.

Example

Draws the texturize shader with a pattern texture.

local pattern = Material("pp/texturize/pattern1.png") hook.Add( "RenderScreenspaceEffects", "TexturizeShader", function() DrawTexturize( 1, pattern ) end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...