@Generated(value={"Immutables.generator","R2FilterEmissionParametersType"}) public final class R2FilterEmissionParameters extends Object implements R2FilterEmissionParametersType
| Modifier and Type | Class and Description |
|---|---|
static class |
R2FilterEmissionParameters.Builder
Builds instances of type
R2FilterEmissionParameters. |
| Modifier and Type | Method and Description |
|---|---|
R2Texture2DUsableType |
albedoEmissionMap() |
Optional<R2BlurParameters> |
blurParameters() |
static R2FilterEmissionParameters.Builder |
builder()
Creates a builder for
R2FilterEmissionParameters. |
static R2FilterEmissionParameters |
copyOf(R2FilterEmissionParametersType instance)
Creates an immutable copy of a
R2FilterEmissionParametersType value. |
float |
emissionIntensity()
A specification of an intensity value by which values sampled from the
albedoEmissionMap() are multiplied. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2FilterEmissionParameters that have equal attribute values. |
float |
glowIntensity()
A specification of an intensity value by which values sampled from
any produced glow maps are multiplied.
|
int |
hashCode()
Computes a hash code from attributes:
textureDefaults, outputFramebuffer, outputViewport, albedoEmissionMap, emissionIntensity, glowIntensity, blurParameters, scale. |
static R2FilterEmissionParameters |
of(R2TextureDefaultsType textureDefaults,
Optional<com.io7m.jcanephora.core.JCGLFramebufferUsableType> outputFramebuffer,
com.io7m.jareas.core.AreaInclusiveUnsignedLType outputViewport,
R2Texture2DUsableType albedoEmissionMap,
float emissionIntensity,
float glowIntensity,
Optional<R2BlurParameters> blurParameters,
float scale)
Construct a new immutable
R2FilterEmissionParameters instance. |
Optional<com.io7m.jcanephora.core.JCGLFramebufferUsableType> |
outputFramebuffer() |
com.io7m.jareas.core.AreaInclusiveUnsignedLType |
outputViewport() |
float |
scale()
If blurring is to be used, the value returned here specifies the scale at
which the intermediate emissive step is rendered.
|
R2TextureDefaultsType |
textureDefaults() |
String |
toString()
Prints the immutable value
R2FilterEmissionParameters with attribute values. |
R2FilterEmissionParameters |
withAlbedoEmissionMap(R2Texture2DUsableType value)
Copy the current immutable object by setting a value for the
albedoEmissionMap attribute. |
R2FilterEmissionParameters |
withBlurParameters(Optional<R2BlurParameters> optional)
Copy the current immutable object by setting an optional value for the
blurParameters attribute. |
R2FilterEmissionParameters |
withBlurParameters(R2BlurParameters value)
Copy the current immutable object by setting a present value for the optional
blurParameters attribute. |
R2FilterEmissionParameters |
withEmissionIntensity(float value)
Copy the current immutable object by setting a value for the
emissionIntensity attribute. |
R2FilterEmissionParameters |
withGlowIntensity(float value)
Copy the current immutable object by setting a value for the
glowIntensity attribute. |
R2FilterEmissionParameters |
withOutputFramebuffer(com.io7m.jcanephora.core.JCGLFramebufferUsableType value)
Copy the current immutable object by setting a present value for the optional
outputFramebuffer attribute. |
R2FilterEmissionParameters |
withOutputFramebuffer(Optional<com.io7m.jcanephora.core.JCGLFramebufferUsableType> optional)
Copy the current immutable object by setting an optional value for the
outputFramebuffer attribute. |
R2FilterEmissionParameters |
withOutputViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
Copy the current immutable object by setting a value for the
outputViewport attribute. |
R2FilterEmissionParameters |
withScale(float value)
Copy the current immutable object by setting a value for the
scale attribute. |
R2FilterEmissionParameters |
withTextureDefaults(R2TextureDefaultsType value)
Copy the current immutable object by setting a value for the
textureDefaults attribute. |
public R2TextureDefaultsType textureDefaults()
textureDefaults in interface R2FilterEmissionParametersTypepublic Optional<com.io7m.jcanephora.core.JCGLFramebufferUsableType> outputFramebuffer()
outputFramebuffer in interface R2FilterEmissionParametersTypepublic com.io7m.jareas.core.AreaInclusiveUnsignedLType outputViewport()
outputViewport in interface R2FilterEmissionParametersTypepublic R2Texture2DUsableType albedoEmissionMap()
albedoEmissionMap in interface R2FilterEmissionParametersType(r, g, b)
components and the emission level in the alpha component.public float emissionIntensity()
albedoEmissionMap() are multiplied. This effectively allows
control over the intensity of the emission effect in the final image.emissionIntensity in interface R2FilterEmissionParametersTypepublic float glowIntensity()
glowIntensity in interface R2FilterEmissionParametersTypepublic Optional<R2BlurParameters> blurParameters()
blurParameters in interface R2FilterEmissionParametersTypepublic float scale()
scale in interface R2FilterEmissionParametersTypepublic final R2FilterEmissionParameters 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 R2FilterEmissionParameters withOutputFramebuffer(com.io7m.jcanephora.core.JCGLFramebufferUsableType value)
outputFramebuffer attribute.value - The value for outputFramebufferthis objectpublic final R2FilterEmissionParameters withOutputFramebuffer(Optional<com.io7m.jcanephora.core.JCGLFramebufferUsableType> optional)
outputFramebuffer attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for outputFramebufferthis objectpublic final R2FilterEmissionParameters withOutputViewport(com.io7m.jareas.core.AreaInclusiveUnsignedLType value)
outputViewport attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for outputViewportthis objectpublic final R2FilterEmissionParameters withAlbedoEmissionMap(R2Texture2DUsableType value)
albedoEmissionMap attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for albedoEmissionMapthis objectpublic final R2FilterEmissionParameters withEmissionIntensity(float value)
emissionIntensity attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for emissionIntensitythis objectpublic final R2FilterEmissionParameters withGlowIntensity(float value)
glowIntensity attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for glowIntensitythis objectpublic final R2FilterEmissionParameters withBlurParameters(R2BlurParameters value)
blurParameters attribute.value - The value for blurParametersthis objectpublic final R2FilterEmissionParameters withBlurParameters(Optional<R2BlurParameters> optional)
blurParameters attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for blurParametersthis objectpublic final R2FilterEmissionParameters withScale(float value)
scale attribute.
A value strict bits equality used to prevent copying of the same value by returning this.value - A new value for scalethis objectpublic boolean equals(Object another)
R2FilterEmissionParameters that have equal attribute values.public int hashCode()
textureDefaults, outputFramebuffer, outputViewport, albedoEmissionMap, emissionIntensity, glowIntensity, blurParameters, scale.public String toString()
R2FilterEmissionParameters with attribute values.public static R2FilterEmissionParameters of(R2TextureDefaultsType textureDefaults, Optional<com.io7m.jcanephora.core.JCGLFramebufferUsableType> outputFramebuffer, com.io7m.jareas.core.AreaInclusiveUnsignedLType outputViewport, R2Texture2DUsableType albedoEmissionMap, float emissionIntensity, float glowIntensity, Optional<R2BlurParameters> blurParameters, float scale)
R2FilterEmissionParameters instance.textureDefaults - The value for the textureDefaults attributeoutputFramebuffer - The value for the outputFramebuffer attributeoutputViewport - The value for the outputViewport attributealbedoEmissionMap - The value for the albedoEmissionMap attributeemissionIntensity - The value for the emissionIntensity attributeglowIntensity - The value for the glowIntensity attributeblurParameters - The value for the blurParameters attributescale - The value for the scale attributepublic static R2FilterEmissionParameters copyOf(R2FilterEmissionParametersType instance)
R2FilterEmissionParametersType 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 R2FilterEmissionParameters.Builder builder()
R2FilterEmissionParameters.Copyright © 2016 <code@io7m.com> http://io7m.com