Enum Class VolumeType

java.lang.Object
java.lang.Enum<VolumeType>
gaiasky.render.gdx.graphics.VolumeType
All Implemented Interfaces:
Serializable, Comparable<VolumeType>, Constable

public enum VolumeType extends Enum<VolumeType>
  • Enum Constant Details

  • Field Details

    • COLOR_MODE_RAMP

      public static final int COLOR_MODE_RAMP
      Use the look-up ramp applied to the voxel density (the pre-RGBA behaviour).
      See Also:
    • COLOR_MODE_TEXTURE

      public static final int COLOR_MODE_TEXTURE
      Use the per-voxel color stored in the texture (RGB), e.g. the RGBA format.
      See Also:
    • COLOR_MODE_TEXTURE_RAMP

      public static final int COLOR_MODE_TEXTURE_RAMP
      Use the per-voxel color modulated by the look-up ramp.
      See Also:
    • glFormat

      public final int glFormat
    • glInternalFormat

      public final int glInternalFormat
    • glType

      public final int glType
  • Method Details

    • values

      public static VolumeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VolumeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • colorMode

      public int colorMode()
      Colour mode to apply when a volume slot holds a texture of this format, i.e. which of the three u_volumeNColorMode values the shader should use.

      DENSITY (R8) stores no colour, so it falls back to the look-up ramp - identical to the pre-RGBA render. COLOR and RGBA carry per-voxel colour and use it directly. Mode COLOR_MODE_TEXTURE_RAMP is not produced by default; it is available to callers that want to modulate the baked colour by the ramp.