@Generated(value={"Immutables.generator","R2DepthShaderBasicStippledParametersType"}) public final class R2DepthShaderBasicStippledParameters extends Object implements R2DepthShaderBasicStippledParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2DepthShaderBasicStippledParameters.Builder
Builds instances of type
R2DepthShaderBasicStippledParameters. |
| 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 R2DepthShaderBasicStippledParameters.Builder |
builder()
Creates a builder for
R2DepthShaderBasicStippledParameters. |
static R2DepthShaderBasicStippledParameters |
copyOf(R2DepthShaderBasicStippledParametersType instance)
Creates an immutable copy of a
R2DepthShaderBasicStippledParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2DepthShaderBasicStippledParameters that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
textureDefaults, albedoTexture, alphaDiscardThreshold, stippleNoiseTexture, stippleThreshold. |
static R2DepthShaderBasicStippledParameters |
of(R2TextureDefaultsType textureDefaults,
R2Texture2DUsableType albedoTexture,
float alphaDiscardThreshold,
R2Texture2DUsableType stippleNoiseTexture,
float stippleThreshold)
Construct a new immutable
R2DepthShaderBasicStippledParameters instance. |
R2Texture2DUsableType |
stippleNoiseTexture()
The noise texture used to implement stippling.
|
float |
stippleThreshold()
The stipple threshold value.
|
R2TextureDefaultsType |
textureDefaults() |
String |
toString()
Prints the immutable value
R2DepthShaderBasicStippledParameters with attribute values. |
R2DepthShaderBasicStippledParameters |
withAlbedoTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
albedoTexture attribute. |
R2DepthShaderBasicStippledParameters |
withAlphaDiscardThreshold(float value)
Copy the current immutable object by setting a value for the
alphaDiscardThreshold attribute. |
R2DepthShaderBasicStippledParameters |
withStippleNoiseTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
stippleNoiseTexture attribute. |
R2DepthShaderBasicStippledParameters |
withStippleThreshold(float value)
Copy the current immutable object by setting a value for the
stippleThreshold attribute. |
R2DepthShaderBasicStippledParameters |
withTextureDefaults(R2TextureDefaultsType value)
Copy the current immutable object by setting a value for the
textureDefaults attribute. |
public R2TextureDefaultsType textureDefaults()
textureDefaults in interface R2DepthShaderBasicParametersValuesTypetextureDefaults in interface R2DepthShaderBasicStippledParametersTypetextureDefaults attributepublic R2Texture2DUsableType albedoTexture()
R2DepthShaderBasicParametersValuesTypeAn albedo map which is used primarily used to determine the opacity of the shaded surface.
albedoTexture in interface R2DepthShaderBasicParametersValuesTypealbedoTexture in interface R2DepthShaderBasicStippledParametersTypealbedoTexture attributepublic float alphaDiscardThreshold()
R2DepthShaderBasicParametersValuesType0.0 will
result in no fragments ever being discarded.alphaDiscardThreshold in interface R2DepthShaderBasicParametersValuesTypealphaDiscardThreshold in interface R2DepthShaderBasicStippledParametersTypealphaDiscardThreshold attributepublic R2Texture2DUsableType stippleNoiseTexture()
stippleNoiseTexture in interface R2DepthShaderBasicStippledParametersTypestippleThreshold()public float stippleThreshold()
stippleNoiseTexture() is sampled at each pixel,
and if the sampled value is less than stippleThreshold(), the
pixel is discarded. Consequently, a stipple threshold of 0.0 never
discards pixels.stippleThreshold in interface R2DepthShaderBasicStippledParametersTypepublic final R2DepthShaderBasicStippledParameters 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 R2DepthShaderBasicStippledParameters 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 R2DepthShaderBasicStippledParameters 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 final R2DepthShaderBasicStippledParameters withStippleNoiseTexture(R2Texture2DUsableType value)
stippleNoiseTexture attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for stippleNoiseTexturethis objectpublic final R2DepthShaderBasicStippledParameters withStippleThreshold(float value)
stippleThreshold attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for stippleThresholdthis objectpublic boolean equals(Object another)
R2DepthShaderBasicStippledParameters that have equal attribute values.public int hashCode()
textureDefaults, albedoTexture, alphaDiscardThreshold, stippleNoiseTexture, stippleThreshold.public String toString()
R2DepthShaderBasicStippledParameters with attribute values.public static R2DepthShaderBasicStippledParameters of(R2TextureDefaultsType textureDefaults, R2Texture2DUsableType albedoTexture, float alphaDiscardThreshold, R2Texture2DUsableType stippleNoiseTexture, float stippleThreshold)
R2DepthShaderBasicStippledParameters instance.textureDefaults - The value for the textureDefaults attributealbedoTexture - The value for the albedoTexture attributealphaDiscardThreshold - The value for the alphaDiscardThreshold attributestippleNoiseTexture - The value for the stippleNoiseTexture attributestippleThreshold - The value for the stippleThreshold attributepublic static R2DepthShaderBasicStippledParameters copyOf(R2DepthShaderBasicStippledParametersType instance)
R2DepthShaderBasicStippledParametersType 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 R2DepthShaderBasicStippledParameters.Builder builder()
R2DepthShaderBasicStippledParameters.Copyright © 2016 <code@io7m.com> http://io7m.com