@Generated(value={"Immutables.generator","R2ShaderFilterFogParametersType"}) public final class R2ShaderFilterFogParameters extends Object implements R2ShaderFilterFogParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2ShaderFilterFogParameters.Builder
Builds instances of type
R2ShaderFilterFogParameters. |
| Modifier and Type | Method and Description |
|---|---|
static R2ShaderFilterFogParameters.Builder |
builder()
Creates a builder for
R2ShaderFilterFogParameters. |
static R2ShaderFilterFogParameters |
copyOf(R2ShaderFilterFogParametersType instance)
Creates an immutable copy of a
R2ShaderFilterFogParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderFilterFogParameters that have equal attribute values. |
com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> |
fogColor() |
float |
fogFarPositiveZ()
The positive eye-space Z value at which fog ends.
|
float |
fogNearPositiveZ()
The positive eye-space Z value at which fog starts.
|
int |
hashCode()
Computes a hash code from attributes:
imageTexture, imageDepthTexture, fogNearPositiveZ, fogFarPositiveZ, fogColor, observerValues. |
R2Texture2DUsableType |
imageDepthTexture() |
R2Texture2DUsableType |
imageTexture() |
R2MatricesObserverValuesType |
observerValues() |
static R2ShaderFilterFogParameters |
of(R2Texture2DUsableType imageTexture,
R2Texture2DUsableType imageDepthTexture,
float fogNearPositiveZ,
float fogFarPositiveZ,
com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> fogColor,
R2MatricesObserverValuesType observerValues)
Construct a new immutable
R2ShaderFilterFogParameters instance. |
String |
toString()
Prints the immutable value
R2ShaderFilterFogParameters with attribute values. |
R2ShaderFilterFogParameters |
withFogColor(com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> value)
Copy the current immutable object by setting a value for the
fogColor attribute. |
R2ShaderFilterFogParameters |
withFogFarPositiveZ(float value)
Copy the current immutable object by setting a value for the
fogFarPositiveZ attribute. |
R2ShaderFilterFogParameters |
withFogNearPositiveZ(float value)
Copy the current immutable object by setting a value for the
fogNearPositiveZ attribute. |
R2ShaderFilterFogParameters |
withImageDepthTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
imageDepthTexture attribute. |
R2ShaderFilterFogParameters |
withImageTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
imageTexture attribute. |
R2ShaderFilterFogParameters |
withObserverValues(R2MatricesObserverValuesType value)
Copy the current immutable object by setting a value for the
observerValues attribute. |
public R2Texture2DUsableType imageTexture()
imageTexture in interface R2ShaderFilterFogParametersTypepublic R2Texture2DUsableType imageDepthTexture()
imageDepthTexture in interface R2ShaderFilterFogParametersTypepublic float fogNearPositiveZ()
fogNearPositiveZ in interface R2ShaderFilterFogParametersTypepublic float fogFarPositiveZ()
fogFarPositiveZ in interface R2ShaderFilterFogParametersTypepublic com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> fogColor()
fogColor in interface R2ShaderFilterFogParametersTypepublic R2MatricesObserverValuesType observerValues()
observerValues in interface R2ShaderFilterFogParametersTypepublic final R2ShaderFilterFogParameters withImageTexture(R2Texture2DUsableType value)
imageTexture attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for imageTexturethis objectpublic final R2ShaderFilterFogParameters withImageDepthTexture(R2Texture2DUsableType value)
imageDepthTexture attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for imageDepthTexturethis objectpublic final R2ShaderFilterFogParameters withFogNearPositiveZ(float value)
fogNearPositiveZ attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for fogNearPositiveZthis objectpublic final R2ShaderFilterFogParameters withFogFarPositiveZ(float value)
fogFarPositiveZ attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for fogFarPositiveZthis objectpublic final R2ShaderFilterFogParameters withFogColor(com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> value)
fogColor attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for fogColorthis objectpublic final R2ShaderFilterFogParameters withObserverValues(R2MatricesObserverValuesType value)
observerValues attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for observerValuesthis objectpublic boolean equals(Object another)
R2ShaderFilterFogParameters that have equal attribute values.public int hashCode()
imageTexture, imageDepthTexture, fogNearPositiveZ, fogFarPositiveZ, fogColor, observerValues.public String toString()
R2ShaderFilterFogParameters with attribute values.public static R2ShaderFilterFogParameters of(R2Texture2DUsableType imageTexture, R2Texture2DUsableType imageDepthTexture, float fogNearPositiveZ, float fogFarPositiveZ, com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> fogColor, R2MatricesObserverValuesType observerValues)
R2ShaderFilterFogParameters instance.imageTexture - The value for the imageTexture attributeimageDepthTexture - The value for the imageDepthTexture attributefogNearPositiveZ - The value for the fogNearPositiveZ attributefogFarPositiveZ - The value for the fogFarPositiveZ attributefogColor - The value for the fogColor attributeobserverValues - The value for the observerValues attributepublic static R2ShaderFilterFogParameters copyOf(R2ShaderFilterFogParametersType instance)
R2ShaderFilterFogParametersType 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 R2ShaderFilterFogParameters.Builder builder()
R2ShaderFilterFogParameters.Copyright © 2016 <code@io7m.com> http://io7m.com