Entity:SetRenderClipPlane
Description
Used to specify a plane, past which an object will be visually clipped.
Arguments
Example
Creates a blue barrel at Vector( 0, 0, 0 )
, freezes it, and will visually clip the barrel's lower half.
local ent = ents.CreateClientProp( "models/props_borealis/bluebarrel001.mdl" )
ent:SetPos( Vector(0, 0, 0) )
ent:Spawn()
ent:GetPhysicsObject():EnableMotion( false )
local normal = ent:GetUp()
local position = normal:Dot( ent:GetPos() )
ent:SetRenderClipPlaneEnabled( true )
ent:SetRenderClipPlane( normal, position )