Class BiomeLUTManager
java.lang.Object
gaiasky.render.util.BiomeLUTManager
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a manager using the default pathtex/lut.BiomeLUTManager(Path basePath) Create a manager that looks for LUT files under the given path. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose all loaded textures and clear the cache.com.badlogic.gdx.graphics.TextureGet a loaded LUT 2D texture by preset name.com.badlogic.gdx.graphics.Texture3DGet a loaded LUT 3D texture by preset name.com.badlogic.gdx.files.FileHandlegetLUTPath(String presetName) Get a loaded LUT token path by preset name.com.badlogic.gdx.utils.Array<String> Get all loaded preset names.intgetSize()voidloadAll()Scan the base directory, group files by preset name, and load each preset as aTexture3D.
-
Constructor Details
-
BiomeLUTManager
Create a manager that looks for LUT files under the given path. The path is first resolved as an absolute path, then as an internal path.- Parameters:
basePath- Directory containing the LUT JPG files.
-
BiomeLUTManager
public BiomeLUTManager()Create a manager using the default pathtex/lut.
-
-
Method Details
-
loadAll
public void loadAll()Scan the base directory, group files by preset name, and load each preset as aTexture3D. -
getLUT3D
Get a loaded LUT 3D texture by preset name.- Parameters:
presetName- e.g."earthlike","desert".- Returns:
- The
Texture3D, ornullif not loaded.
-
getLUT2D
Get a loaded LUT 2D texture by preset name.- Parameters:
presetName- e.g."earthlike","desert".- Returns:
- The
Texture, ornullif not loaded.
-
getLUTPath
Get a loaded LUT token path by preset name.- Parameters:
presetName- e.g."earthlike","desert".- Returns:
- The
FileHandle, ornullif not loaded.
-
getPresetNames
Get all loaded preset names. -
getSize
public int getSize() -
dispose
public void dispose()Dispose all loaded textures and clear the cache.
-