@Generated(value={"Immutables.generator","R2ShaderFilterEmissionParametersType"}) public final class R2ShaderFilterEmissionParameters extends Object implements R2ShaderFilterEmissionParametersType
Modifier and Type | Class and Description |
---|---|
static class |
R2ShaderFilterEmissionParameters.Builder
Builds instances of type
R2ShaderFilterEmissionParameters . |
Modifier and Type | Method and Description |
---|---|
R2Texture2DUsableType |
albedoEmissionTexture() |
static R2ShaderFilterEmissionParameters.Builder |
builder()
Creates a builder for
R2ShaderFilterEmissionParameters . |
static R2ShaderFilterEmissionParameters |
copyOf(R2ShaderFilterEmissionParametersType instance)
Creates an immutable copy of a
R2ShaderFilterEmissionParametersType value. |
double |
emissionIntensity()
A specification of an intensity value by which values sampled from the
albedoEmissionTexture() are multiplied. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderFilterEmissionParameters that have equal attribute values. |
double |
glowIntensity()
A specification of an intensity value by which values sampled from the
glowTexture() are multiplied. |
R2Texture2DUsableType |
glowTexture() |
int |
hashCode()
Computes a hash code from attributes:
albedoEmissionTexture , emissionIntensity , glowTexture , glowIntensity . |
static R2ShaderFilterEmissionParameters |
of(R2Texture2DUsableType albedoEmissionTexture,
double emissionIntensity,
R2Texture2DUsableType glowTexture,
double glowIntensity)
Construct a new immutable
R2ShaderFilterEmissionParameters instance. |
String |
toString()
Prints the immutable value
R2ShaderFilterEmissionParameters with attribute values. |
R2ShaderFilterEmissionParameters |
withAlbedoEmissionTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
albedoEmissionTexture attribute. |
R2ShaderFilterEmissionParameters |
withEmissionIntensity(double value)
Copy the current immutable object by setting a value for the
emissionIntensity attribute. |
R2ShaderFilterEmissionParameters |
withGlowIntensity(double value)
Copy the current immutable object by setting a value for the
glowIntensity attribute. |
R2ShaderFilterEmissionParameters |
withGlowTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
glowTexture attribute. |
public R2Texture2DUsableType albedoEmissionTexture()
albedoEmissionTexture
in interface R2ShaderFilterEmissionParametersType
public double emissionIntensity()
albedoEmissionTexture()
are multiplied. This effectively allows
control over the intensity of the emission effect in the final image.emissionIntensity
in interface R2ShaderFilterEmissionParametersType
public R2Texture2DUsableType glowTexture()
glowTexture
in interface R2ShaderFilterEmissionParametersType
public double glowIntensity()
glowTexture()
are multiplied. This effectively allows control over
the intensity of the glow effect in the final image.glowIntensity
in interface R2ShaderFilterEmissionParametersType
public final R2ShaderFilterEmissionParameters withAlbedoEmissionTexture(R2Texture2DUsableType value)
albedoEmissionTexture
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for albedoEmissionTexturethis
objectpublic final R2ShaderFilterEmissionParameters withEmissionIntensity(double value)
emissionIntensity
attribute.
A value strict bits equality used to prevent copying of the same value by returning this
.value
- A new value for emissionIntensitythis
objectpublic final R2ShaderFilterEmissionParameters withGlowTexture(R2Texture2DUsableType value)
glowTexture
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for glowTexturethis
objectpublic final R2ShaderFilterEmissionParameters withGlowIntensity(double value)
glowIntensity
attribute.
A value strict bits equality used to prevent copying of the same value by returning this
.value
- A new value for glowIntensitythis
objectpublic boolean equals(Object another)
R2ShaderFilterEmissionParameters
that have equal attribute values.public int hashCode()
albedoEmissionTexture
, emissionIntensity
, glowTexture
, glowIntensity
.public String toString()
R2ShaderFilterEmissionParameters
with attribute values.public static R2ShaderFilterEmissionParameters of(R2Texture2DUsableType albedoEmissionTexture, double emissionIntensity, R2Texture2DUsableType glowTexture, double glowIntensity)
R2ShaderFilterEmissionParameters
instance.albedoEmissionTexture
- The value for the albedoEmissionTexture
attributeemissionIntensity
- The value for the emissionIntensity
attributeglowTexture
- The value for the glowTexture
attributeglowIntensity
- The value for the glowIntensity
attributepublic static R2ShaderFilterEmissionParameters copyOf(R2ShaderFilterEmissionParametersType instance)
R2ShaderFilterEmissionParametersType
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static R2ShaderFilterEmissionParameters.Builder builder()
R2ShaderFilterEmissionParameters
.Copyright © 2017 <code@io7m.com> http://io7m.com