Garry's Mod Wiki


ProjectedTexture:SetNearZ( number nearZ )


Sets the distance at which the projected texture begins its projection.

You must call ProjectedTexture:Update after using this function for it to take effect.

Setting this to 0 will disable the projected texture completely! This may be useful if you want to disable a projected texture without actually removing it
This seems to affect the rendering of shadows - a higher Near Z value will have shadows begin to render closer to their casting object. Comparing a low Near Z value (like 1) with a normal one (12) or high one (1000) is the easiest way to understand this artifact


1 number nearZ

Page Links

Special Pages



Render Time: 37ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 17
Render Body 0
Render Sidebar 12