public class MipmapSizes extends Object
| Constructor and Description |
|---|
MipmapSizes() |
| Modifier and Type | Method and Description |
|---|---|
int |
bestLevel(org.joml.Vector3fc x,
org.joml.Vector3f temp)
Get best resolution level at source coordinates
x. |
int |
getBaseLevel()
Highest required resolution (lowest level) for any visible block
|
float |
getDrel(org.joml.Vector3fc x,
org.joml.Vector3f temp) |
float |
getSf() |
float |
getSn() |
void |
init(org.joml.Matrix4fc sourceToNDC,
int viewportWidth,
List<? extends ResolutionLevel3D<?>> resolutions) |
boolean |
isVisible()
Is any part of the volume visible?
|
public void init(org.joml.Matrix4fc sourceToNDC, int viewportWidth, List<? extends ResolutionLevel3D<?>> resolutions)
sourceToNDC - Projection * View * Model matrixviewportWidth - resolutions - public boolean isVisible()
public int getBaseLevel()
public int bestLevel(org.joml.Vector3fc x, org.joml.Vector3f temp)
x.
(Queried for block centers.)public float getDrel(org.joml.Vector3fc x, org.joml.Vector3f temp)
public float getSn()
public float getSf()
Copyright © 2018–2025 BigDataViewer. All rights reserved.