- java.lang.Object
-
- bvv.core.blockmath.MipmapSizes
-
public class MipmapSizes extends Object
-
-
Constructor Summary
Constructors Constructor Description MipmapSizes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbestLevel(org.joml.Vector3fc x, org.joml.Vector3f temp)Get best resolution level at source coordinatesx.intgetBaseLevel()Highest required resolution (lowest level) for any visible blockfloatgetDrel(org.joml.Vector3fc x, org.joml.Vector3f temp)floatgetSf()floatgetSn()voidinit(org.joml.Matrix4fc sourceToNDC, int viewportWidth, List<? extends ResolutionLevel3D<?>> resolutions)booleanisVisible()Is any part of the volume visible?
-
-
-
Method Detail
-
init
public void init(org.joml.Matrix4fc sourceToNDC, int viewportWidth, List<? extends ResolutionLevel3D<?>> resolutions)
- Parameters:
sourceToNDC-Projection * View * ModelmatrixviewportWidth-resolutions-
-
isVisible
public boolean isVisible()
Is any part of the volume visible?
-
getBaseLevel
public int getBaseLevel()
Highest required resolution (lowest level) for any visible block
-
bestLevel
public int bestLevel(org.joml.Vector3fc x, org.joml.Vector3f temp)
Get best resolution level at source coordinatesx. (Queried for block centers.)
-
getDrel
public float getDrel(org.joml.Vector3fc x, org.joml.Vector3f temp)
-
getSn
public float getSn()
-
getSf
public float getSf()
-
-