@Generated(value={"Immutables.generator","R2FilterFXAAParametersType"}) public final class R2FilterFXAAParameters extends Object implements R2FilterFXAAParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2FilterFXAAParameters.Builder
Builds instances of type
R2FilterFXAAParameters. |
| Modifier and Type | Method and Description |
|---|---|
static R2FilterFXAAParameters.Builder |
builder()
Creates a builder for
R2FilterFXAAParameters. |
static R2FilterFXAAParameters |
copyOf(R2FilterFXAAParametersType instance)
Creates an immutable copy of a
R2FilterFXAAParametersType 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
R2FilterFXAAParameters that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
texture, quality, subPixelAliasingRemoval, edgeThreshold, edgeThresholdMinimum. |
static R2FilterFXAAParameters |
of(R2Texture2DUsableType texture,
R2FilterFXAAQuality quality,
float subPixelAliasingRemoval,
float edgeThreshold,
float edgeThresholdMinimum)
Construct a new immutable
R2FilterFXAAParameters instance. |
R2FilterFXAAQuality |
quality() |
float |
subPixelAliasingRemoval()
The amount of subpixel aliasing removal.
|
R2Texture2DUsableType |
texture() |
String |
toString()
Prints the immutable value
R2FilterFXAAParameters with attribute values. |
R2FilterFXAAParameters |
withEdgeThreshold(float value)
Copy the current immutable object by setting a value for the
edgeThreshold attribute. |
R2FilterFXAAParameters |
withEdgeThresholdMinimum(float value)
Copy the current immutable object by setting a value for the
edgeThresholdMinimum attribute. |
R2FilterFXAAParameters |
withQuality(R2FilterFXAAQuality value)
Copy the current immutable object by setting a value for the
quality attribute. |
R2FilterFXAAParameters |
withSubPixelAliasingRemoval(float value)
Copy the current immutable object by setting a value for the
subPixelAliasingRemoval attribute. |
R2FilterFXAAParameters |
withTexture(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
texture attribute. |
public R2Texture2DUsableType texture()
texture in interface R2FilterFXAAParametersTypepublic R2FilterFXAAQuality quality()
quality in interface R2FilterFXAAParametersTypepublic 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 R2FilterFXAAParametersTypepublic 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 R2FilterFXAAParametersTypepublic 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 R2FilterFXAAParametersTypepublic final R2FilterFXAAParameters 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 R2FilterFXAAParameters withQuality(R2FilterFXAAQuality value)
quality attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for qualitythis objectpublic final R2FilterFXAAParameters 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 R2FilterFXAAParameters 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 R2FilterFXAAParameters 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)
R2FilterFXAAParameters that have equal attribute values.public int hashCode()
texture, quality, subPixelAliasingRemoval, edgeThreshold, edgeThresholdMinimum.public String toString()
R2FilterFXAAParameters with attribute values.public static R2FilterFXAAParameters of(R2Texture2DUsableType texture, R2FilterFXAAQuality quality, float subPixelAliasingRemoval, float edgeThreshold, float edgeThresholdMinimum)
R2FilterFXAAParameters instance.texture - The value for the texture attributequality - The value for the quality attributesubPixelAliasingRemoval - The value for the subPixelAliasingRemoval attributeedgeThreshold - The value for the edgeThreshold attributeedgeThresholdMinimum - The value for the edgeThresholdMinimum attributepublic static R2FilterFXAAParameters copyOf(R2FilterFXAAParametersType instance)
R2FilterFXAAParametersType 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 R2FilterFXAAParameters.Builder builder()
R2FilterFXAAParameters.Copyright © 2017 <code@io7m.com> http://io7m.com