Class LODGroupExtensions
Inheritance
LODGroupExtensions
Syntax
public static class LODGroupExtensions
Methods
CalculateCurrentLODIndex(float4, float3, ref LODGroupExtensions.LODParams)
Declaration
public static int CalculateCurrentLODIndex(float4 lodDistances, float3 worldReferencePoint, ref LODGroupExtensions.LODParams lodParams)
Parameters
Returns
CalculateCurrentLODMask(float4, float3, ref LODGroupExtensions.LODParams)
Declaration
public static int CalculateCurrentLODMask(float4 lodDistances, float3 worldReferencePoint, ref LODGroupExtensions.LODParams lodParams)
Parameters
Returns
CalculateLODParams(Camera, Single)
Declaration
public static LODGroupExtensions.LODParams CalculateLODParams(Camera camera, float overrideLODBias = 0F)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
Single |
overrideLODBias |
|
Returns
CalculateLODParams(LODParameters, Single)
Declaration
public static LODGroupExtensions.LODParams CalculateLODParams(LODParameters parameters, float overrideLODBias = 0F)
Parameters
Type |
Name |
Description |
LODParameters |
parameters |
|
Single |
overrideLODBias |
|
Returns
CalculateLODSwitchDistance(Single, LODGroup, Int32)
Declaration
public static float CalculateLODSwitchDistance(float fieldOfView, LODGroup group, int lodIndex)
Parameters
Type |
Name |
Description |
Single |
fieldOfView |
|
LODGroup |
group |
|
Int32 |
lodIndex |
|
Returns
GetWorldPosition(LODGroup)
Declaration
public static float3 GetWorldPosition(LODGroup group)
Parameters
Type |
Name |
Description |
LODGroup |
group |
|
Returns
GetWorldSpaceSize(LODGroup)
Declaration
public static float GetWorldSpaceSize(LODGroup lodGroup)
Parameters
Type |
Name |
Description |
LODGroup |
lodGroup |
|
Returns