@Generated(value={"Immutables.generator","R2DepthShaderBasicParametersType"}) public final class R2DepthShaderBasicParameters extends Object implements R2DepthShaderBasicParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2DepthShaderBasicParameters.Builder
Builds instances of type
R2DepthShaderBasicParameters. |
| Modifier and Type | Method and Description |
|---|---|
R2Texture2DUsableType |
albedoTexture()
An albedo map which is used primarily used to determine the opacity
of the shaded surface.
|
float |
alphaDiscardThreshold()
The threshold value that defines whether or not the surface fragment will
be discarded.
|
static R2DepthShaderBasicParameters.Builder |
builder()
Creates a builder for
R2DepthShaderBasicParameters. |
static R2DepthShaderBasicParameters |
copyOf(R2DepthShaderBasicParametersType instance)
Creates an immutable copy of a
R2DepthShaderBasicParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2DepthShaderBasicParameters that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
textureDefaults, albedoTexture, alphaDiscardThreshold. |
static R2DepthShaderBasicParameters |
of(R2TextureDefaultsType textureDefaults,
R2Texture2DUsableType albedoTexture,
float alphaDiscardThreshold)
Construct a new immutable
R2DepthShaderBasicParameters instance. |
R2TextureDefaultsType |
textureDefaults() |
String |
toString()
Prints the immutable value
R2DepthShaderBasicParameters with attribute values. |
R2DepthShaderBasicParameters |
withAlbedoTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
albedoTexture attribute. |
R2DepthShaderBasicParameters |
withAlphaDiscardThreshold(float value)
Copy the current immutable object by setting a value for the
alphaDiscardThreshold attribute. |
R2DepthShaderBasicParameters |
withTextureDefaults(R2TextureDefaultsType value)
Copy the current immutable object by setting a value for the
textureDefaults attribute. |
public R2TextureDefaultsType textureDefaults()
textureDefaults in interface R2DepthShaderBasicParametersTypetextureDefaults in interface R2DepthShaderBasicParametersValuesTypetextureDefaults attributepublic R2Texture2DUsableType albedoTexture()
R2DepthShaderBasicParametersValuesTypeAn albedo map which is used primarily used to determine the opacity of the shaded surface.
albedoTexture in interface R2DepthShaderBasicParametersTypealbedoTexture in interface R2DepthShaderBasicParametersValuesTypealbedoTexture attributepublic float alphaDiscardThreshold()
R2DepthShaderBasicParametersValuesType0.0 will
result in no fragments ever being discarded.alphaDiscardThreshold in interface R2DepthShaderBasicParametersTypealphaDiscardThreshold in interface R2DepthShaderBasicParametersValuesTypealphaDiscardThreshold attributepublic final R2DepthShaderBasicParameters withTextureDefaults(R2TextureDefaultsType value)
textureDefaults attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for textureDefaultsthis objectpublic final R2DepthShaderBasicParameters withAlbedoTexture(R2Texture2DUsableType value)
albedoTexture attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for albedoTexturethis objectpublic final R2DepthShaderBasicParameters withAlphaDiscardThreshold(float value)
alphaDiscardThreshold attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for alphaDiscardThresholdthis objectpublic boolean equals(Object another)
R2DepthShaderBasicParameters that have equal attribute values.public int hashCode()
textureDefaults, albedoTexture, alphaDiscardThreshold.public String toString()
R2DepthShaderBasicParameters with attribute values.public static R2DepthShaderBasicParameters of(R2TextureDefaultsType textureDefaults, R2Texture2DUsableType albedoTexture, float alphaDiscardThreshold)
R2DepthShaderBasicParameters instance.textureDefaults - The value for the textureDefaults attributealbedoTexture - The value for the albedoTexture attributealphaDiscardThreshold - The value for the alphaDiscardThreshold attributepublic static R2DepthShaderBasicParameters copyOf(R2DepthShaderBasicParametersType instance)
R2DepthShaderBasicParametersType 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 R2DepthShaderBasicParameters.Builder builder()
R2DepthShaderBasicParameters.Copyright © 2016 <code@io7m.com> http://io7m.com