@Generated(value={"Immutables.generator","R2ShaderFilterFXAAParametersType"}) public final class R2ShaderFilterFXAAParameters extends Object implements R2ShaderFilterFXAAParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2ShaderFilterFXAAParameters.Builder
Builds instances of type
R2ShaderFilterFXAAParameters. |
| Modifier and Type | Method and Description |
|---|---|
static R2ShaderFilterFXAAParameters.Builder |
builder()
Creates a builder for
R2ShaderFilterFXAAParameters. |
static R2ShaderFilterFXAAParameters |
copyOf(R2ShaderFilterFXAAParametersType instance)
Creates an immutable copy of a
R2ShaderFilterFXAAParametersType value. |
float |
edgeThreshold()
The minimum amount of local contrast required to apply the
algorithm.
|
float |
edgeThresholdMinimum()
The minimum edge brightness for which to enable filtering.
|
boolean |
equals(Object another)
This instance is equal to all instances of
R2ShaderFilterFXAAParameters that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
texture, subPixelAliasingRemoval, edgeThreshold, edgeThresholdMinimum. |
static R2ShaderFilterFXAAParameters |
of(R2Texture2DUsableType texture,
float subPixelAliasingRemoval,
float edgeThreshold,
float edgeThresholdMinimum)
Construct a new immutable
R2ShaderFilterFXAAParameters instance. |
float |
subPixelAliasingRemoval()
The amount of subpixel aliasing removal.
|
R2Texture2DUsableType |
texture() |
String |
toString()
Prints the immutable value
R2ShaderFilterFXAAParameters with attribute values. |
R2ShaderFilterFXAAParameters |
withEdgeThreshold(float value)
Copy the current immutable object by setting a value for the
edgeThreshold attribute. |
R2ShaderFilterFXAAParameters |
withEdgeThresholdMinimum(float value)
Copy the current immutable object by setting a value for the
edgeThresholdMinimum attribute. |
R2ShaderFilterFXAAParameters |
withSubPixelAliasingRemoval(float value)
Copy the current immutable object by setting a value for the
subPixelAliasingRemoval attribute. |
R2ShaderFilterFXAAParameters |
withTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
texture attribute. |
public R2Texture2DUsableType texture()
texture in interface R2ShaderFilterFXAAParametersTypepublic float subPixelAliasingRemoval()
The amount of subpixel aliasing removal.
The range of useful values is [0.0, 1.0], where 0.0
turns off filtering and 1.0 gives almost excessive filtering.
subPixelAliasingRemoval in interface R2ShaderFilterFXAAParametersTypepublic float edgeThreshold()
The minimum amount of local contrast required to apply the algorithm.
The range of useful values is [0.063, 0.333], where 0.333 is fastest but lowest quality, and 0.063 is overkill quality
and is relatively slow.
edgeThreshold in interface R2ShaderFilterFXAAParametersTypepublic float edgeThresholdMinimum()
The minimum edge brightness for which to enable filtering.
The range of useful values is [0.0312, 0.0833], where 0.0312 is slowest, and 0.0833 is fastest.
This value is somewhat scene-specific, but the default (and highest)
value appears to work well. The documentation for the FXAA algorithm
suggests looking at mostly-green rendered content (the algorithm depends on
luma information taken from the green channel of the filtered image),
setting this value at 0.0, and then increasing it until aliasing
artifacts appear.
edgeThresholdMinimum in interface R2ShaderFilterFXAAParametersTypepublic final R2ShaderFilterFXAAParameters withTexture(R2Texture2DUsableType value)
texture attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for texturethis objectpublic final R2ShaderFilterFXAAParameters withSubPixelAliasingRemoval(float value)
subPixelAliasingRemoval attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for subPixelAliasingRemovalthis objectpublic final R2ShaderFilterFXAAParameters withEdgeThreshold(float value)
edgeThreshold attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for edgeThresholdthis objectpublic final R2ShaderFilterFXAAParameters withEdgeThresholdMinimum(float value)
edgeThresholdMinimum attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for edgeThresholdMinimumthis objectpublic boolean equals(Object another)
R2ShaderFilterFXAAParameters that have equal attribute values.public int hashCode()
texture, subPixelAliasingRemoval, edgeThreshold, edgeThresholdMinimum.public String toString()
R2ShaderFilterFXAAParameters with attribute values.public static R2ShaderFilterFXAAParameters of(R2Texture2DUsableType texture, float subPixelAliasingRemoval, float edgeThreshold, float edgeThresholdMinimum)
R2ShaderFilterFXAAParameters instance.texture - The value for the texture attributesubPixelAliasingRemoval - The value for the subPixelAliasingRemoval attributeedgeThreshold - The value for the edgeThreshold attributeedgeThresholdMinimum - The value for the edgeThresholdMinimum attributepublic static R2ShaderFilterFXAAParameters copyOf(R2ShaderFilterFXAAParametersType instance)
R2ShaderFilterFXAAParametersType 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 R2ShaderFilterFXAAParameters.Builder builder()
R2ShaderFilterFXAAParameters.Copyright © 2016 <code@io7m.com> http://io7m.com