public static final class R2SurfaceShaderBasicReflectiveParameters.Builder extends Object
R2SurfaceShaderBasicReflectiveParameters.
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 R2SurfaceShaderBasicReflectiveParameters.Builder from(R2SurfaceShaderBasicReflectiveParametersType instance)
com.io7m.r2.core.shaders.provided.R2SurfaceShaderBasicReflectiveParametersType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder from(R2SurfaceShaderBasicParametersValuesType instance)
com.io7m.r2.core.shaders.provided.R2SurfaceShaderBasicParametersValuesType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setTextureDefaults(R2TextureDefaultsType textureDefaults)
textureDefaults attribute.textureDefaults - The value for textureDefaultsthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setAlbedoColor(com.io7m.jtensors.parameterized.PVectorI4F<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 R2SurfaceShaderBasicReflectiveParameters.Builder setSpecularColor(com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> specularColor)
specularColor attribute.
If not set, this attribute will have a default value as returned by the initializer of specularColor.
specularColor - The value for specularColorthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setEmission(float emission)
emission attribute.
If not set, this attribute will have a default value as returned by the initializer of emission.
emission - The value for emissionthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setEmissionTexture(R2Texture2DUsableType emissionTexture)
emissionTexture attribute.
If not set, this attribute will have a default value as returned by the initializer of emissionTexture.
emissionTexture - The value for emissionTexturethis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.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 R2SurfaceShaderBasicReflectiveParameters.Builder setAlbedoMix(float albedoMix)
albedoMix attribute.
If not set, this attribute will have a default value as returned by the initializer of albedoMix.
albedoMix - The value for albedoMixthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setSpecularTexture(R2Texture2DUsableType specularTexture)
specularTexture attribute.
If not set, this attribute will have a default value as returned by the initializer of specularTexture.
specularTexture - The value for specularTexturethis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setSpecularExponent(float specularExponent)
specularExponent attribute.
If not set, this attribute will have a default value as returned by the initializer of specularExponent.
specularExponent - The value for specularExponentthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setNormalTexture(R2Texture2DUsableType normalTexture)
normalTexture attribute.
If not set, this attribute will have a default value as returned by the initializer of normalTexture.
normalTexture - The value for normalTexturethis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.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 final R2SurfaceShaderBasicReflectiveParameters.Builder setEnvironmentTexture(R2TextureCubeUsableType environmentTexture)
environmentTexture attribute.
If not set, this attribute will have a default value as returned by the initializer of environmentTexture.
environmentTexture - The value for environmentTexturethis builder for use in a chained invocationpublic final R2SurfaceShaderBasicReflectiveParameters.Builder setEnvironmentMix(float environmentMix)
environmentMix attribute.
If not set, this attribute will have a default value as returned by the initializer of environmentMix.
environmentMix - The value for environmentMixthis builder for use in a chained invocationpublic R2SurfaceShaderBasicReflectiveParameters build()
R2SurfaceShaderBasicReflectiveParameters.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com