Table of Contents

Class CalculateVisibilityAndLODJob

Namespace
AwesomeTechnologies.VegetationSystem
Assembly
Assembly-CSharp.dll
public class CalculateVisibilityAndLODJob : IJob
Inheritance
CalculateVisibilityAndLODJob
Implements
IJob
Inherited Members
Extension Methods

Constructors

CalculateVisibilityAndLODJob()

public CalculateVisibilityAndLODJob()

Fields

CameraPosition

public Vector3 CameraPosition

Field Value

Vector3

CullDistance

public float CullDistance

Field Value

float

DisableLOD

public bool DisableLOD

Field Value

bool

FrustumPlanes

public NativeArray<Plane> FrustumPlanes

Field Value

NativeArray<Plane>

InstanceList

public NativeList<Matrix4x4> InstanceList

Field Value

NativeList<Matrix4x4>

ItemBoundSize

public Vector3 ItemBoundSize

Field Value

Vector3

LOD0InstanceList

public NativeList<Matrix4x4> LOD0InstanceList

Field Value

NativeList<Matrix4x4>

LOD0LODFadeList

public NativeList<float> LOD0LODFadeList

Field Value

NativeList<float>

LOD0ShadowInstanceList

public NativeList<Matrix4x4> LOD0ShadowInstanceList

Field Value

NativeList<Matrix4x4>

LOD0ShadowLODFadeList

public NativeList<float> LOD0ShadowLODFadeList

Field Value

NativeList<float>

LOD1Distance

public float LOD1Distance

Field Value

float

LOD1InstanceList

public NativeList<Matrix4x4> LOD1InstanceList

Field Value

NativeList<Matrix4x4>

LOD1LODFadeList

public NativeList<float> LOD1LODFadeList

Field Value

NativeList<float>

LOD1ShadowInstanceList

public NativeList<Matrix4x4> LOD1ShadowInstanceList

Field Value

NativeList<Matrix4x4>

LOD1ShadowLODFadeList

public NativeList<float> LOD1ShadowLODFadeList

Field Value

NativeList<float>

LOD2Distance

public float LOD2Distance

Field Value

float

LOD2InstanceList

public NativeList<Matrix4x4> LOD2InstanceList

Field Value

NativeList<Matrix4x4>

LOD2LODFadeList

public NativeList<float> LOD2LODFadeList

Field Value

NativeList<float>

LOD2ShadowInstanceList

public NativeList<Matrix4x4> LOD2ShadowInstanceList

Field Value

NativeList<Matrix4x4>

LOD2ShadowLODFadeList

public NativeList<float> LOD2ShadowLODFadeList

Field Value

NativeList<float>

LODFadeDistance

public float LODFadeDistance

Field Value

float

LightDirection

public Vector3 LightDirection

Field Value

Vector3

PlaneOrigin

public Vector3 PlaneOrigin

Field Value

Vector3

Methods

BoundsIntersectsFrustum(Bounds)

public bool BoundsIntersectsFrustum(Bounds bounds)

Parameters

bounds Bounds

Returns

bool

Execute()

public void Execute()

GetShadowBounds(Bounds, float3, float3, out bool)

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

Parameters

objectBounds Bounds
lightDirection float3
planeOrigin float3
hitPlane bool

Returns

Bounds

IntersectPlane(Ray, float3, out float3)

public bool IntersectPlane(Ray ray, float3 planeOrigin, out float3 hitPoint)

Parameters

ray Ray
planeOrigin float3
hitPoint float3

Returns

bool

IsShadowVisible(Bounds, Vector3, Vector3, NativeArray<Plane>)

public bool IsShadowVisible(Bounds objectBounds, Vector3 lightDirection, Vector3 planeOrigin, NativeArray<Plane> frustumPlanes)

Parameters

objectBounds Bounds
lightDirection Vector3
planeOrigin Vector3
frustumPlanes NativeArray<Plane>

Returns

bool