Garry's Mod Wiki

g_texturize

g_texturize

Description

Replaces every pixel with a part of the texture set by $basetexture.

The texture used must be power of 2 and must also be 8 times higher than it is wide (an aspect ratio of 1:8) in order to function.

The shader replaces every pixel with a part of the texture depending on its brightness. Dark areas will use the upper parts of the texture and brighter parts the lower parts of the texture.

Parameters

scalex [number]

The size of the texturing on the x axis

scaley [number]

The size of the texturing on the y axis

Special Pages


Wikis

?

Render Time: 27ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 11
Render Body 0
Render Sidebar 8