Class LODGroupExtensions
Inheritance
System.Object
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
Type |
Description |
System.Int32 |
|
CalculateCurrentLODMask(float4, float3, ref LODGroupExtensions.LODParams)
Declaration
public static int CalculateCurrentLODMask(float4 lodDistances, float3 worldReferencePoint, ref LODGroupExtensions.LODParams lodParams)
Parameters
Returns
Type |
Description |
System.Int32 |
|
CalculateLODParams(Camera, Single)
Declaration
public static LODGroupExtensions.LODParams CalculateLODParams(Camera camera, float overrideLODBias = 0F)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
System.Single |
overrideLODBias |
|
Returns
CalculateLODParams(LODParameters, Single)
Declaration
public static LODGroupExtensions.LODParams CalculateLODParams(LODParameters parameters, float overrideLODBias = 0F)
Parameters
Type |
Name |
Description |
LODParameters |
parameters |
|
System.Single |
overrideLODBias |
|
Returns
CalculateLODSwitchDistance(Single, LODGroup, Int32)
Declaration
public static float CalculateLODSwitchDistance(float fieldOfView, LODGroup group, int lodIndex)
Parameters
Type |
Name |
Description |
System.Single |
fieldOfView |
|
LODGroup |
group |
|
System.Int32 |
lodIndex |
|
Returns
Type |
Description |
System.Single |
|
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
Type |
Description |
System.Single |
|