Interface ICullable
interface ICullable {
isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
isInFrustum(frustumPlanes: Plane[]): boolean;
}
isCompletelyInFrustum(frustumPlanes: Plane[]): boolean;
isInFrustum(frustumPlanes: Plane[]): boolean;
}
Implemented by
Methods
is Completely In Frustum
-
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
- frustumPlanes: Plane[]
is In Frustum
-
Checks if the object or part of the object is in the frustum
Parameters
- frustumPlanes: Plane[]
Camera near/planes
Returns boolean
true if the object is in frustum otherwise false
- frustumPlanes: Plane[]
Interface for cullable objects
See
https://doc.babylonjs.com/features/featuresDeepDive/materials/using/materials_introduction#back-face-culling