Class BiomeLUTManager

java.lang.Object
gaiasky.render.util.BiomeLUTManager

public class BiomeLUTManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a manager using the default path tex/lut.
    Create a manager that looks for LUT files under the given path.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Dispose all loaded textures and clear the cache.
    com.badlogic.gdx.graphics.Texture
    getLUT2D(String presetName)
    Get a loaded LUT 2D texture by preset name.
    com.badlogic.gdx.graphics.Texture3D
    getLUT3D(String presetName)
    Get a loaded LUT 3D texture by preset name.
    com.badlogic.gdx.files.FileHandle
    getLUTPath(String presetName)
    Get a loaded LUT token path by preset name.
    com.badlogic.gdx.utils.Array<String>
    Get all loaded preset names.
    int
     
    void
    Scan the base directory, group files by preset name, and load each preset as a Texture3D.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BiomeLUTManager

      public BiomeLUTManager(Path basePath)
      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 path tex/lut.
  • Method Details

    • loadAll

      public void loadAll()
      Scan the base directory, group files by preset name, and load each preset as a Texture3D.
    • getLUT3D

      public com.badlogic.gdx.graphics.Texture3D getLUT3D(String presetName)
      Get a loaded LUT 3D texture by preset name.
      Parameters:
      presetName - e.g. "earthlike", "desert".
      Returns:
      The Texture3D, or null if not loaded.
    • getLUT2D

      public com.badlogic.gdx.graphics.Texture getLUT2D(String presetName)
      Get a loaded LUT 2D texture by preset name.
      Parameters:
      presetName - e.g. "earthlike", "desert".
      Returns:
      The Texture, or null if not loaded.
    • getLUTPath

      public com.badlogic.gdx.files.FileHandle getLUTPath(String presetName)
      Get a loaded LUT token path by preset name.
      Parameters:
      presetName - e.g. "earthlike", "desert".
      Returns:
      The FileHandle, or null if not loaded.
    • getPresetNames

      public com.badlogic.gdx.utils.Array<String> getPresetNames()
      Get all loaded preset names.
    • getSize

      public int getSize()
    • dispose

      public void dispose()
      Dispose all loaded textures and clear the cache.