public static final class R2TranslucentShaderBasicParameters.Builder extends Object
R2TranslucentShaderBasicParameters
.
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 R2TranslucentShaderBasicParameters.Builder from(R2TranslucentShaderBasicParametersType instance)
R2TranslucentShaderBasicParametersType
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final R2TranslucentShaderBasicParameters.Builder setTextureDefaults(R2TextureDefaultsType textureDefaults)
textureDefaults
attribute.textureDefaults
- The value for textureDefaultsthis
builder for use in a chained invocationpublic final R2TranslucentShaderBasicParameters.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 R2TranslucentShaderBasicParameters.Builder setAlbedoColor(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> albedoColor)
albedoColor
attribute.
If not set, this attribute will have a default value as returned by the initializer of albedoColor
.
albedoColor
- The value for albedoColorthis
builder for use in a chained invocationpublic final R2TranslucentShaderBasicParameters.Builder setFadeZNear(double fadeZNear)
fadeZNear
attribute.
If not set, this attribute will have a default value as returned by the initializer of fadeZNear
.
fadeZNear
- The value for fadeZNearthis
builder for use in a chained invocationpublic final R2TranslucentShaderBasicParameters.Builder setFadeZFar(double fadeZFar)
fadeZFar
attribute.
If not set, this attribute will have a default value as returned by the initializer of fadeZFar
.
fadeZFar
- The value for fadeZFarthis
builder for use in a chained invocationpublic R2TranslucentShaderBasicParameters build()
R2TranslucentShaderBasicParameters
.IllegalStateException
- if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com