CalculateFrustumPlanes() public static method

Calculates frustum planes.

public static CalculateFrustumPlanes ( Camera camera ) : UnityEngine.Plane[]
camera Camera
return UnityEngine.Plane[]
Ejemplo n.º 1
0
 public static void CalculateFrustumPlanes(Camera camera, Plane[] planes)
 {
     GeometryUtility.CalculateFrustumPlanes(camera.projectionMatrix * camera.worldToCameraMatrix, planes);
 }
Ejemplo n.º 2
0
 public static Plane[] CalculateFrustumPlanes(Camera camera)
 {
     Plane[] array = new Plane[6];
     GeometryUtility.CalculateFrustumPlanes(camera, array);
     return(array);
 }
Ejemplo n.º 3
0
 public static Plane[] CalculateFrustumPlanes(Matrix4x4 worldToProjectionMatrix)
 {
     Plane[] array = new Plane[6];
     GeometryUtility.CalculateFrustumPlanes(worldToProjectionMatrix, array);
     return(array);
 }
Ejemplo n.º 4
0
 public static Plane[] CalculateFrustumPlanes(Camera camera)
 {
     return(GeometryUtility.CalculateFrustumPlanes(camera.projectionMatrix * camera.worldToCameraMatrix));
 }