Table of Contents

Class ShadowUtility

Namespace
AwesomeTechnologies.Utility
Assembly
Assembly-CSharp.dll
public class ShadowUtility
Inheritance
ShadowUtility
Inherited Members
Extension Methods

Constructors

ShadowUtility()

public ShadowUtility()

Methods

BoundsIntersectsFrustum(Plane[], Bounds)

public static bool BoundsIntersectsFrustum(Plane[] planes, Bounds bounds)

Parameters

planes Plane[]
bounds Bounds

Returns

bool

GetShadowBounds(Bounds, Vector3, Vector3, out bool)

public static Bounds GetShadowBounds(Bounds objectBounds, Vector3 lightDirection, Vector3 planeOrigin, out bool hitPlane)

Parameters

objectBounds Bounds
lightDirection Vector3
planeOrigin Vector3
hitPlane bool

Returns

Bounds

IntersectPlane(Ray, Vector3, out Vector3)

public static bool IntersectPlane(Ray ray, Vector3 planeOrigin, out Vector3 hitPoint)

Parameters

ray Ray
planeOrigin Vector3
hitPoint Vector3

Returns

bool

IsShadowVisible(Bounds, Vector3, Vector3, Plane[])

public static bool IsShadowVisible(Bounds objectBounds, Vector3 lightDirection, Vector3 planeOrigin, Plane[] frustumPlanes)

Parameters

objectBounds Bounds
lightDirection Vector3
planeOrigin Vector3
frustumPlanes Plane[]

Returns

bool