Class FrustumCulling
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public class FrustumCulling
- Inheritance
-
FrustumCulling
- Inherited Members
- Extension Methods
Fields
ViewDistanceSq
public int ViewDistanceSq
Field Value
lod0BiasSq
public float lod0BiasSq
Field Value
lod2BiasSq
If distance squared is above this fraction of ViewDistanceSq, switch to LOD2. Default value corresponds to distances beyond around 67% of the player's view distance. At default, approximately 55% of the total rendered chunks will use LOD2.
public double lod2BiasSq
Field Value
shadowRangeX
public double shadowRangeX
Field Value
shadowRangeZ
public double shadowRangeZ
Field Value
Methods
CalcFrustumEquations(BlockPos, double[], double[])
public void CalcFrustumEquations(BlockPos playerPos, double[] projectionMatrix, double[] cameraMatrix)
Parameters
InFrustum(Sphere)
public bool InFrustum(Sphere sphere)
Parameters
sphere
Sphere
Returns
InFrustumAndRange(Sphere, bool, int)
public bool InFrustumAndRange(Sphere sphere, bool nowVisible, int lodLevel = 0)
Parameters
Returns
InFrustumShadowPass(Sphere)
public bool InFrustumShadowPass(Sphere sphere)
Parameters
sphere
Sphere
Returns
SphereInFrustum(double, double, double, double)
public bool SphereInFrustum(double x, double y, double z, double radius)
Parameters
Returns
UpdateViewDistance(int)
public void UpdateViewDistance(int newValue)
Parameters
newValue
int