Entity.SetRenderClipPlane
From GMod Wiki
Function | |
Syntax |
Entity.SetRenderClipPlane( Vector normal, Vector distance ) Where is this used? |
Description: | |
Clips a model along a plane | |
Returns: | nil |
Part of Library: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetRenderClipPlane]Entity.SetRenderClipPlane [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example Usage
Additional Notes
- You must enable clipping first using "SetRenderClipPlaneEnabled".
- "normal" is a vector normal to the plane, "pos" is a known point on the plane, "distance" is the dot product of the two.
- If distance is not given it defaults to drawing the plane on the map origin (0,0,0)
- Only needs set once, do not set it every frame unless you have to (e.g. keeping the plane relative to the prop)
Riddler 12:58, 12 May 2010 (UTC)