Most visited

Recently visited

DirectionalLight.DirectionalLightBuilder

public static class DirectionalLight.DirectionalLightBuilder
extends Object

java.lang.Object
   ↳ com.viro.core.DirectionalLight.DirectionalLightBuilder<R extends com.viro.core.Light, B extends com.viro.core.Light.LightBuilder<R, B>>


Builder for creating DirectionalLight.DirectionalLightBuilder objects.

Summary

Public constructors

DirectionalLight.DirectionalLightBuilder()

Constructor for DirectionalLightBuilder.

Public methods

DirectionalLightBuilder castsShadow(boolean castsShadow)

Refer to setCastsShadow(boolean).

DirectionalLightBuilder direction(Vector direction)

Refer to setDirection(Vector).

DirectionalLightBuilder shadowBias(float shadowBias)

Refer to setShadowBias(float).

DirectionalLightBuilder shadowFarZ(float shadowFarZ)

Refer to setShadowFarZ(float).

DirectionalLightBuilder shadowMapSize(int shadowMapSize)

Refer to setShadowMapSize(int).

DirectionalLightBuilder shadowNearZ(float shadowNearZ)

Refer to setShadowNearZ(float).

DirectionalLightBuilder shadowOpacity(float opacity)

Refer to setShadowOpacity(float).

DirectionalLightBuilder shadowOrthographicPosition(Vector position)

Refer to setShadowOrthographicPosition(Vector).

DirectionalLightBuilder shadowOrthographicSize(float orthographicSize)

Refer to setShadowOrthographicSize(float).

Public constructors

DirectionalLight.DirectionalLightBuilder

DirectionalLight.DirectionalLightBuilder ()

Constructor for DirectionalLightBuilder.

Public methods

castsShadow

DirectionalLightBuilder castsShadow (boolean castsShadow)

Refer to setCastsShadow(boolean).

Parameters
castsShadow boolean

Returns
DirectionalLightBuilder This builder.

direction

DirectionalLightBuilder direction (Vector direction)

Refer to setDirection(Vector).

Parameters
direction Vector

Returns
DirectionalLightBuilder This builder.

shadowBias

DirectionalLightBuilder shadowBias (float shadowBias)

Refer to setShadowBias(float).

Parameters
shadowBias float

Returns
DirectionalLightBuilder This builder.

shadowFarZ

DirectionalLightBuilder shadowFarZ (float shadowFarZ)

Refer to setShadowFarZ(float).

Parameters
shadowFarZ float

Returns
DirectionalLightBuilder This builder.

shadowMapSize

DirectionalLightBuilder shadowMapSize (int shadowMapSize)

Refer to setShadowMapSize(int).

Parameters
shadowMapSize int

Returns
DirectionalLightBuilder This builder.

shadowNearZ

DirectionalLightBuilder shadowNearZ (float shadowNearZ)

Refer to setShadowNearZ(float).

Parameters
shadowNearZ float

Returns
DirectionalLightBuilder This builder.

shadowOpacity

DirectionalLightBuilder shadowOpacity (float opacity)

Refer to setShadowOpacity(float).

Parameters
opacity float

Returns
DirectionalLightBuilder This builder.

shadowOrthographicPosition

DirectionalLightBuilder shadowOrthographicPosition (Vector position)

Refer to setShadowOrthographicPosition(Vector).

Parameters
position Vector

Returns
DirectionalLightBuilder This builder.

shadowOrthographicSize

DirectionalLightBuilder shadowOrthographicSize (float orthographicSize)

Refer to setShadowOrthographicSize(float).

Parameters
orthographicSize float

Returns
DirectionalLightBuilder This builder.

Hooray!