render.PopCustomClipPlane

From GMod Wiki

Jump to: navigation, search
Function
Syntax render.PopCustomClipPlane( )
Where is this used?
Description:
Removes the topmost plane from the plane stack.
Returns: nil
Part of Library: render
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Render.PopCustomClipPlane]Render.PopCustomClipPlane [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPops the plane we just pushed onto the stack off.
Used onNewerClient.png
Code
local normal = Vector( 0, 0, 1 );
local distance = normal:Dot( vector_origin );
 
render.EnableClipping( true );
render.PushCustomClipPlane( normal, distance );
self:DrawModel();
render.PopCustomClipPlane();
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox