public static final class R2DepthShaderBasicParameters.Builder extends Object
R2DepthShaderBasicParameters.
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.
| Modifier and Type | Method and Description |
|---|---|
R2DepthShaderBasicParameters |
build()
Builds a new
R2DepthShaderBasicParameters. |
R2DepthShaderBasicParameters.Builder |
from(R2DepthShaderBasicParametersType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.shaders.provided.R2DepthShaderBasicParametersType instance. |
R2DepthShaderBasicParameters.Builder |
from(R2DepthShaderBasicParametersValuesType instance)
Fill a builder with attribute values from the provided
com.io7m.r2.core.shaders.provided.R2DepthShaderBasicParametersValuesType instance. |
R2DepthShaderBasicParameters.Builder |
setAlbedoTexture(R2Texture2DUsableType albedoTexture)
Initializes the value for the
albedoTexture attribute. |
R2DepthShaderBasicParameters.Builder |
setAlphaDiscardThreshold(float alphaDiscardThreshold)
Initializes the value for the
alphaDiscardThreshold attribute. |
R2DepthShaderBasicParameters.Builder |
setTextureDefaults(R2TextureDefaultsType textureDefaults)
Initializes the value for the
textureDefaults attribute. |
public final R2DepthShaderBasicParameters.Builder from(R2DepthShaderBasicParametersType instance)
com.io7m.r2.core.shaders.provided.R2DepthShaderBasicParametersType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final R2DepthShaderBasicParameters.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 R2DepthShaderBasicParameters.Builder setTextureDefaults(R2TextureDefaultsType textureDefaults)
textureDefaults attribute.textureDefaults - The value for textureDefaultsthis builder for use in a chained invocationpublic final R2DepthShaderBasicParameters.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 R2DepthShaderBasicParameters.Builder setAlphaDiscardThreshold(float 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 R2DepthShaderBasicParameters build()
R2DepthShaderBasicParameters.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com