render.PushCustomClipPlane

From GMod Wiki

Jump to: navigation, search
Function
Syntax render.PushCustomClipPlane( Vector normal, Number distance )
Where is this used?
Description:
Pushes a new plane onto the plane stack.
Returns: nil
Part of Library: render
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Render.PushCustomClipPlane]Render.PushCustomClipPlane [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPushes a new plane onto the plane stack.
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


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox