DrawTexturize

From Garry's Mod
Jump to: navigation, search
 DrawTexturize( )

Contents

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

number Scale

Scale of the texture. A smaller number creates a larger texture.

Arguments

number BaseTexture

This will be the texture to use in the effect. Make sure you use Material to get the texture number

Examples

Example

Draws the texturize shader with a pattern texture.

function GM:RenderScreenspaceEffects()

 DrawTexturize(1, Material("pp/texturize/pattern1.png"))

end


Personal tools
Navigation