Enum Class VfxBlend
- All Implemented Interfaces:
Serializable, Comparable<VfxBlend>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdded to the scene: light, fire, magic.Painted over the scene by its alpha: smoke, dust, anything that should darken as well as lighten.Painted over likeALPHA, taking the alpha from how bright each texel is: for glow textures drawn on black with no alpha channel, which additive blending would lose against a bright sky. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.pipeline.BlendFunctionfunction()booleanWhether the shader takes each texel's alpha from its brightness.static VfxBlendReturns the enum constant of this class with the specified name.static VfxBlend[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADDITIVE
Added to the scene: light, fire, magic. Overlapping pieces brighten each other, and black adds nothing, so a greyscale glow on a black background needs no alpha channel. It washes out against a bright sky. -
ALPHA
Painted over the scene by its alpha: smoke, dust, anything that should darken as well as lighten. -
LUMINOUS
-
-
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
-
function
public com.mojang.blaze3d.pipeline.BlendFunction function() -
luminanceAlpha
public boolean luminanceAlpha()Whether the shader takes each texel's alpha from its brightness.
-