Most visited

Recently visited

Material.MaterialBuilder

public static class Material.MaterialBuilder
extends Object

java.lang.Object
   ↳ com.viro.core.Material.MaterialBuilder


Builder for creating Material objects.

Summary

Public constructors

Material.MaterialBuilder()

Constructor for Material.MaterialBuilder.

Public methods

Material.MaterialBuilder ambientOcclusionMap(Texture ambientOcclusionMap)

Refer to setAmbientOcclusionMap(Texture).

Material.MaterialBuilder blendMode(Material.BlendMode blendMode)

Refer to setBlendMode(BlendMode).

Material.MaterialBuilder bloomThreshold(float bloomThreshold)

Refer to setBloomThreshold(float).

Material build()

Returns the built Material.

Material.MaterialBuilder cullMode(Material.CullMode cullMode)

Refer to setCullMode(CullMode).

Material.MaterialBuilder diffuseColor(int color)

Refer to setDiffuseColor(int).

Material.MaterialBuilder diffuseTexture(Texture texture)

Refer to setDiffuseTexture(Texture).

Material.MaterialBuilder lightingModel(Material.LightingModel lightingModel)

Refer to setLightingModel(LightingModel).

Material.MaterialBuilder metalness(float metalness)

Refer to setMetalness(float).

Material.MaterialBuilder metalnessMap(Texture metalnessMap)

Refer to setMetalnessMap(Texture).

Material.MaterialBuilder normalMap(Texture normalMap)

Refer to setNormalMap(Texture).

Material.MaterialBuilder readsFromDepthBuffer(boolean readsFromDepthBuffer)

Refer to setReadsFromDepthBuffer(boolean).

Material.MaterialBuilder roughness(float roughness)

Refer to setRoughness(float).

Material.MaterialBuilder roughnessMap(Texture roughnessMap)

Refer to setRoughnessMap(Texture).

Material.MaterialBuilder setName(String name)

Refer to setName(String)}.

Material.MaterialBuilder shadowMode(Material.ShadowMode shadowMode)

Refer to setShadowMode(ShadowMode).

Material.MaterialBuilder shininess(float shininess)

Refer to setShininess(float).

Material.MaterialBuilder specularTexture(Texture texture)

Refer to setSpecularTexture(Texture).

Material.MaterialBuilder transparencyMode(Material.TransparencyMode transparencyMode)

Refer to setTransparencyMode(TransparencyMode).

Material.MaterialBuilder writesToDepthBuffer(boolean writesToDepthBuffer)

Refer to setWritesToDepthBuffer(boolean).

Public constructors

Material.MaterialBuilder

Material.MaterialBuilder ()

Constructor for Material.MaterialBuilder.

Public methods

ambientOcclusionMap

Material.MaterialBuilder ambientOcclusionMap (Texture ambientOcclusionMap)

Refer to setAmbientOcclusionMap(Texture).

Parameters
ambientOcclusionMap Texture

Returns
Material.MaterialBuilder This builder.

blendMode

Material.MaterialBuilder blendMode (Material.BlendMode blendMode)

Refer to setBlendMode(BlendMode).

Parameters
blendMode Material.BlendMode

Returns
Material.MaterialBuilder This builder.

bloomThreshold

Material.MaterialBuilder bloomThreshold (float bloomThreshold)

Refer to setBloomThreshold(float).

Parameters
bloomThreshold float

Returns
Material.MaterialBuilder This builder.

build

Material build ()

Returns the built Material.

Returns
Material The built Material.

cullMode

Material.MaterialBuilder cullMode (Material.CullMode cullMode)

Refer to setCullMode(CullMode).

Parameters
cullMode Material.CullMode

Returns
Material.MaterialBuilder This builder.

diffuseColor

Material.MaterialBuilder diffuseColor (int color)

Refer to setDiffuseColor(int).

Parameters
color int

Returns
Material.MaterialBuilder This builder.

diffuseTexture

Material.MaterialBuilder diffuseTexture (Texture texture)

Refer to setDiffuseTexture(Texture).

Parameters
texture Texture

Returns
Material.MaterialBuilder This builder.

lightingModel

Material.MaterialBuilder lightingModel (Material.LightingModel lightingModel)

Refer to setLightingModel(LightingModel).

Parameters
lightingModel Material.LightingModel

Returns
Material.MaterialBuilder This builder.

metalness

Material.MaterialBuilder metalness (float metalness)

Refer to setMetalness(float).

Parameters
metalness float

Returns
Material.MaterialBuilder This builder.

metalnessMap

Material.MaterialBuilder metalnessMap (Texture metalnessMap)

Refer to setMetalnessMap(Texture).

Parameters
metalnessMap Texture

Returns
Material.MaterialBuilder This builder.

normalMap

Material.MaterialBuilder normalMap (Texture normalMap)

Refer to setNormalMap(Texture).

Parameters
normalMap Texture

Returns
Material.MaterialBuilder This builder.

readsFromDepthBuffer

Material.MaterialBuilder readsFromDepthBuffer (boolean readsFromDepthBuffer)

Refer to setReadsFromDepthBuffer(boolean).

Parameters
readsFromDepthBuffer boolean

Returns
Material.MaterialBuilder This builder.

roughness

Material.MaterialBuilder roughness (float roughness)

Refer to setRoughness(float).

Parameters
roughness float

Returns
Material.MaterialBuilder This builder.

roughnessMap

Material.MaterialBuilder roughnessMap (Texture roughnessMap)

Refer to setRoughnessMap(Texture).

Parameters
roughnessMap Texture

Returns
Material.MaterialBuilder This builder.

setName

Material.MaterialBuilder setName (String name)

Refer to setName(String)}.

Parameters
name String

Returns
Material.MaterialBuilder This builder.

shadowMode

Material.MaterialBuilder shadowMode (Material.ShadowMode shadowMode)

Refer to setShadowMode(ShadowMode).

Parameters
shadowMode Material.ShadowMode

Returns
Material.MaterialBuilder This builder.

shininess

Material.MaterialBuilder shininess (float shininess)

Refer to setShininess(float).

Parameters
shininess float

Returns
Material.MaterialBuilder This builder.

specularTexture

Material.MaterialBuilder specularTexture (Texture texture)

Refer to setSpecularTexture(Texture).

Parameters
texture Texture

Returns
Material.MaterialBuilder This builder.

transparencyMode

Material.MaterialBuilder transparencyMode (Material.TransparencyMode transparencyMode)

Refer to setTransparencyMode(TransparencyMode).

Parameters
transparencyMode Material.TransparencyMode

Returns
Material.MaterialBuilder This builder.

writesToDepthBuffer

Material.MaterialBuilder writesToDepthBuffer (boolean writesToDepthBuffer)

Refer to setWritesToDepthBuffer(boolean).

Parameters
writesToDepthBuffer boolean

Returns
Material.MaterialBuilder This builder.

Hooray!