public static final class R2SurfaceShaderBasicStippledParameters.Builder extends Object
R2SurfaceShaderBasicStippledParameters.
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 R2SurfaceShaderBasicStippledParameters.Builder from(R2SurfaceShaderBasicStippledParametersType instance)
com.io7m.r2.core.shaders.provided.R2SurfaceShaderBasicStippledParametersType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.Builder setTextureDefaults(R2TextureDefaultsType textureDefaults)
textureDefaults attribute.textureDefaults - The value for textureDefaultsthis builder for use in a chained invocationpublic final R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.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 R2SurfaceShaderBasicStippledParameters.Builder setStippleNoiseTexture(R2Texture2DUsableType stippleNoiseTexture)
stippleNoiseTexture attribute.stippleNoiseTexture - The value for stippleNoiseTexturethis builder for use in a chained invocationpublic final R2SurfaceShaderBasicStippledParameters.Builder setStippleThreshold(float 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 R2SurfaceShaderBasicStippledParameters build()
R2SurfaceShaderBasicStippledParameters.IllegalStateException - if any required attributes are missingCopyright © 2016 <code@io7m.com> http://io7m.com