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.

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.

Page Links


Special Pages


Wikis

?

Render Time: 85ms

DB GetPage 51
Generate Html 12
SaveChanges (1) 10
Render Body 0
Render Sidebar 9