Enum Class VolumeType
- All Implemented Interfaces:
Serializable, Comparable<VolumeType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUse the look-up ramp applied to the voxel density (the pre-RGBA behaviour).static final intUse the per-voxel color stored in the texture (RGB), e.g.static final intUse the per-voxel color modulated by the look-up ramp.final intfinal intfinal int -
Method Summary
Modifier and TypeMethodDescriptionintColour mode to apply when a volume slot holds a texture of this format, i.e.static VolumeTypeReturns the enum constant of this class with the specified name.static VolumeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DENSITY
-
COLOR
-
RGBA
-
-
Field Details
-
COLOR_MODE_RAMP
public static final int COLOR_MODE_RAMPUse the look-up ramp applied to the voxel density (the pre-RGBA behaviour).- See Also:
-
COLOR_MODE_TEXTURE
public static final int COLOR_MODE_TEXTUREUse 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_RAMPUse 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
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
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 nameNullPointerException- 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 threeu_volumeNColorModevalues 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_RAMPis not produced by default; it is available to callers that want to modulate the baked colour by the ramp.
-