@Generated(value={"Immutables.generator","R2ShaderSSAOParametersType"}) public final class R2ShaderSSAOParameters extends Object implements R2ShaderSSAOParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2ShaderSSAOParameters.Builder
Builds instances of type
R2ShaderSSAOParameters. |
| Modifier and Type | Method and Description |
|---|---|
static R2ShaderSSAOParameters.Builder |
builder()
Creates a builder for
R2ShaderSSAOParameters. |
static R2ShaderSSAOParameters |
copyOf(R2ShaderSSAOParametersType instance)
Creates an immutable copy of a
R2ShaderSSAOParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderSSAOParameters that have equal attribute values. |
float |
exponent()
The exponent that will be used to modify the generated SSAO term.
|
R2GeometryBufferUsableType |
geometryBuffer() |
int |
hashCode()
Computes a hash code from attributes:
exponent, sampleRadius, kernel, noiseTexture, viewport, viewMatrices, geometryBuffer. |
R2SSAOKernelType |
kernel()
The kernel that will be used for sampling.
|
R2Texture2DUsableType |
noiseTexture()
The noise texture that will be used to rotate the sampling hemisphere
randomly at each pixel.
|
static R2ShaderSSAOParameters |
of(float exponent,
float sampleRadius,
R2SSAOKernelType kernel,
R2Texture2DUsableType noiseTexture,
com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport,
R2MatricesObserverValuesType viewMatrices,
R2GeometryBufferUsableType geometryBuffer)
Construct a new immutable
R2ShaderSSAOParameters instance. |
float |
sampleRadius()
The eye-space radius around the sampling point that will be searched for
occluding surfaces.
|
String |
toString()
Prints the immutable value
R2ShaderSSAOParameters with attribute values. |
R2MatricesObserverValuesType |
viewMatrices() |
com.io7m.jareas.core.AreaInclusiveUnsignedLType |
viewport()
The viewport of the ambient occlusion buffer to which occlusion terms are
written.
|
R2ShaderSSAOParameters |
withExponent(float value)
Copy the current immutable object by setting a value for the
exponent attribute. |
R2ShaderSSAOParameters |
withGeometryBuffer(R2GeometryBufferUsableType value)
Copy the current immutable object by setting a value for the
geometryBuffer attribute. |
R2ShaderSSAOParameters |
withKernel(R2SSAOKernelType value)
Copy the current immutable object by setting a value for the
kernel attribute. |
R2ShaderSSAOParameters |
withNoiseTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
noiseTexture attribute. |
R2ShaderSSAOParameters |
withSampleRadius(float value)
Copy the current immutable object by setting a value for the
sampleRadius attribute. |
R2ShaderSSAOParameters |
withViewMatrices(R2MatricesObserverValuesType value)
Copy the current immutable object by setting a value for the
viewMatrices attribute. |
R2ShaderSSAOParameters |
withViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
Copy the current immutable object by setting a value for the
viewport attribute. |
public float exponent()
exponent in interface R2ShaderSSAOParametersTypepublic float sampleRadius()
sampleRadius in interface R2ShaderSSAOParametersTypepublic R2SSAOKernelType kernel()
kernel in interface R2ShaderSSAOParametersTypepublic R2Texture2DUsableType noiseTexture()
noiseTexture in interface R2ShaderSSAOParametersTypepublic com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport()
viewport in interface R2ShaderSSAOParametersTypepublic R2MatricesObserverValuesType viewMatrices()
viewMatrices in interface R2ShaderSSAOParametersTypepublic R2GeometryBufferUsableType geometryBuffer()
geometryBuffer in interface R2ShaderSSAOParametersTypepublic final R2ShaderSSAOParameters withExponent(float value)
exponent attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for exponentthis objectpublic final R2ShaderSSAOParameters withSampleRadius(float value)
sampleRadius attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for sampleRadiusthis objectpublic final R2ShaderSSAOParameters withKernel(R2SSAOKernelType value)
kernel attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for kernelthis objectpublic final R2ShaderSSAOParameters withNoiseTexture(R2Texture2DUsableType value)
noiseTexture attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for noiseTexturethis objectpublic final R2ShaderSSAOParameters withViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
viewport attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for viewportthis objectpublic final R2ShaderSSAOParameters withViewMatrices(R2MatricesObserverValuesType value)
viewMatrices attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for viewMatricesthis objectpublic final R2ShaderSSAOParameters withGeometryBuffer(R2GeometryBufferUsableType value)
geometryBuffer attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for geometryBufferthis objectpublic boolean equals(Object another)
R2ShaderSSAOParameters that have equal attribute values.public int hashCode()
exponent, sampleRadius, kernel, noiseTexture, viewport, viewMatrices, geometryBuffer.public String toString()
R2ShaderSSAOParameters with attribute values.public static R2ShaderSSAOParameters of(float exponent, float sampleRadius, R2SSAOKernelType kernel, R2Texture2DUsableType noiseTexture, com.io7m.jareas.core.AreaInclusiveUnsignedLType viewport, R2MatricesObserverValuesType viewMatrices, R2GeometryBufferUsableType geometryBuffer)
R2ShaderSSAOParameters instance.exponent - The value for the exponent attributesampleRadius - The value for the sampleRadius attributekernel - The value for the kernel attributenoiseTexture - The value for the noiseTexture attributeviewport - The value for the viewport attributeviewMatrices - The value for the viewMatrices attributegeometryBuffer - The value for the geometryBuffer attributepublic static R2ShaderSSAOParameters copyOf(R2ShaderSSAOParametersType instance)
R2ShaderSSAOParametersType 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 R2ShaderSSAOParameters.Builder builder()
R2ShaderSSAOParameters.Copyright © 2016 <code@io7m.com> http://io7m.com