API

Interface ICullable

Interface for cullable objects

interface ICullable {
    isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
    isInFrustum(frustumPlanes: Plane[]): boolean;
}

Implemented by

Index
  • Checks if a cullable object (mesh...) is in the camera frustum Unlike isInFrustum this checks the full bounding box

    Parameters

    • frustumPlanes: Plane[]

      Camera near/planes

    Returns boolean

    true if the object is in frustum otherwise false