ProjectedTexture/SetOrthographic

From Garry's Mod
Revision as of 11:49, 29 July 2016 by Willox (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 ProjectedTexture:SetOrthographic( )

Contents

Description

Next Update Change

This feature is only available in the next update.

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

boolean orthographic

When false, all other arguments are ignored and the texture is reset to perspective projection.

Arguments

number left

The amount of units left from the projected texture's origin to project.

Arguments

number top

The amount of units upwards from the projected texture's origin to project.

Arguments

number right

The amount of units right from the projected texture's origin to project.

Arguments

number bottom

The amount of units downwards from the projected texture's origin to project.

Examples

Example

Set the projected texture back to perspective projection.

ProjectedTexture:SetOrthographic( false )


Personal tools
Navigation