public static final class R2DepthShaderBasicStippledParameters.Builder extends Object
R2DepthShaderBasicStippledParameters
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final R2DepthShaderBasicStippledParameters.Builder from(R2DepthShaderBasicStippledParametersType instance)
com.io7m.r2.core.shaders.provided.R2DepthShaderBasicStippledParametersType
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final R2DepthShaderBasicStippledParameters.Builder from(R2DepthShaderBasicParametersValuesType instance)
com.io7m.r2.core.shaders.provided.R2DepthShaderBasicParametersValuesType
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final R2DepthShaderBasicStippledParameters.Builder setTextureDefaults(R2TextureDefaultsType textureDefaults)
textureDefaults
attribute.textureDefaults
- The value for textureDefaultsthis
builder for use in a chained invocationpublic final R2DepthShaderBasicStippledParameters.Builder setAlbedoTexture(R2Texture2DUsableType albedoTexture)
albedoTexture
attribute.
If not set, this attribute will have a default value as returned by the initializer of albedoTexture
.
albedoTexture
- The value for albedoTexturethis
builder for use in a chained invocationpublic final R2DepthShaderBasicStippledParameters.Builder setAlphaDiscardThreshold(double alphaDiscardThreshold)
alphaDiscardThreshold
attribute.
If not set, this attribute will have a default value as returned by the initializer of alphaDiscardThreshold
.
alphaDiscardThreshold
- The value for alphaDiscardThresholdthis
builder for use in a chained invocationpublic final R2DepthShaderBasicStippledParameters.Builder setStippleNoiseTexture(R2Texture2DUsableType stippleNoiseTexture)
stippleNoiseTexture
attribute.stippleNoiseTexture
- The value for stippleNoiseTexturethis
builder for use in a chained invocationpublic final R2DepthShaderBasicStippledParameters.Builder setStippleThreshold(double stippleThreshold)
stippleThreshold
attribute.
If not set, this attribute will have a default value as returned by the initializer of stippleThreshold
.
stippleThreshold
- The value for stippleThresholdthis
builder for use in a chained invocationpublic R2DepthShaderBasicStippledParameters build()
R2DepthShaderBasicStippledParameters
.IllegalStateException
- if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com