Garry's Mod Wiki

Garry's Mod Wiki

  ProjectedTexture:SetNearZ( number nearZ )

Description

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

Arguments

1 number nearZ

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 four times a day. Edits and history are not available.

Last Parsed: Loading...