Garry's Mod Wiki

ProjectedTexture:SetOrthographic

  ProjectedTexture:SetOrthographic( boolean orthographic, number left, number top, number right, number bottom )

Description

Changes the current projected texture between orthographic and perspective projection.

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

Shadows dont work. (For non static props and for most map brushes)

Arguments

1 boolean orthographic
When false, all other arguments are ignored and the texture is reset to perspective projection.
2 number left
The amount of units left from the projected texture's origin to project.
3 number top
The amount of units upwards from the projected texture's origin to project.
4 number right
The amount of units right from the projected texture's origin to project.
5 number bottom
The amount of units downwards from the projected texture's origin to project.

Example

Set the projected texture back to perspective projection.