@Generated(value={"Immutables.generator","R2TranslucentShaderBasicParametersType"}) public final class R2TranslucentShaderBasicParameters extends Object implements R2TranslucentShaderBasicParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2TranslucentShaderBasicParameters.Builder
Builds instances of type
R2TranslucentShaderBasicParameters. |
| Modifier and Type | Method and Description |
|---|---|
com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> |
albedoColor() |
R2Texture2DUsableType |
albedoTexture()
An albedo map which is used primarily used to determine the opacity
of the shaded surface.
|
static R2TranslucentShaderBasicParameters.Builder |
builder()
Creates a builder for
R2TranslucentShaderBasicParameters. |
static R2TranslucentShaderBasicParameters |
copyOf(R2TranslucentShaderBasicParametersType instance)
Creates an immutable copy of a
R2TranslucentShaderBasicParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2TranslucentShaderBasicParameters that have equal attribute values. |
float |
fadeZFar()
A specification of the distance at which instances will be fully faded in.
|
float |
fadeZNear()
A specification of the distance at which to begin fading in instances.
|
int |
hashCode()
Computes a hash code from attributes:
textureDefaults, albedoTexture, albedoColor, fadeZNear, fadeZFar. |
static R2TranslucentShaderBasicParameters |
of(R2TextureDefaultsType textureDefaults,
R2Texture2DUsableType albedoTexture,
com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> albedoColor,
float fadeZNear,
float fadeZFar)
Construct a new immutable
R2TranslucentShaderBasicParameters instance. |
R2TextureDefaultsType |
textureDefaults() |
String |
toString()
Prints the immutable value
R2TranslucentShaderBasicParameters with attribute values. |
R2TranslucentShaderBasicParameters |
withAlbedoColor(com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> value)
Copy the current immutable object by setting a value for the
albedoColor attribute. |
R2TranslucentShaderBasicParameters |
withAlbedoTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
albedoTexture attribute. |
R2TranslucentShaderBasicParameters |
withFadeZFar(float value)
Copy the current immutable object by setting a value for the
fadeZFar attribute. |
R2TranslucentShaderBasicParameters |
withFadeZNear(float value)
Copy the current immutable object by setting a value for the
fadeZNear attribute. |
R2TranslucentShaderBasicParameters |
withTextureDefaults(R2TextureDefaultsType value)
Copy the current immutable object by setting a value for the
textureDefaults attribute. |
public R2TextureDefaultsType textureDefaults()
textureDefaults in interface R2TranslucentShaderBasicParametersTypepublic R2Texture2DUsableType albedoTexture()
An albedo map which is used primarily used to determine the opacity of the shaded surface.
albedoTexture in interface R2TranslucentShaderBasicParametersTypepublic com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> albedoColor()
albedoColor in interface R2TranslucentShaderBasicParametersTypepublic float fadeZNear()
A specification of the distance at which to begin fading in instances. This allows instances to quickly fade out when they get too close to the view plane.
fadeZNear in interface R2TranslucentShaderBasicParametersTypefadeZFar()public float fadeZFar()
fadeZFar in interface R2TranslucentShaderBasicParametersTypefadeZNear()public final R2TranslucentShaderBasicParameters 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 R2TranslucentShaderBasicParameters 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 R2TranslucentShaderBasicParameters withAlbedoColor(com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> value)
albedoColor attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for albedoColorthis objectpublic final R2TranslucentShaderBasicParameters withFadeZNear(float value)
fadeZNear attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for fadeZNearthis objectpublic final R2TranslucentShaderBasicParameters withFadeZFar(float value)
fadeZFar attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for fadeZFarthis objectpublic boolean equals(Object another)
R2TranslucentShaderBasicParameters that have equal attribute values.public int hashCode()
textureDefaults, albedoTexture, albedoColor, fadeZNear, fadeZFar.public String toString()
R2TranslucentShaderBasicParameters with attribute values.public static R2TranslucentShaderBasicParameters of(R2TextureDefaultsType textureDefaults, R2Texture2DUsableType albedoTexture, com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> albedoColor, float fadeZNear, float fadeZFar)
R2TranslucentShaderBasicParameters instance.textureDefaults - The value for the textureDefaults attributealbedoTexture - The value for the albedoTexture attributealbedoColor - The value for the albedoColor attributefadeZNear - The value for the fadeZNear attributefadeZFar - The value for the fadeZFar attributepublic static R2TranslucentShaderBasicParameters copyOf(R2TranslucentShaderBasicParametersType instance)
R2TranslucentShaderBasicParametersType 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 R2TranslucentShaderBasicParameters.Builder builder()
R2TranslucentShaderBasicParameters.Copyright © 2016 <code@io7m.com> http://io7m.com