Most visited

Recently visited

Spotlight.SpotlightBuilder

public static class Spotlight.SpotlightBuilder
extends Object

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


Builder for creating Spotlight objects.

Summary

Public constructors

Spotlight.SpotlightBuilder()

Constructor for SpotLightBuilder.

Public methods

SpotlightBuilder attenuationEndDistance(float attenuationEndDistance)

Refer to setAttenuationEndDistance(float).

SpotlightBuilder attenuationStartDistance(float attenuationStartDistance)

Refer to setAttenuationStartDistance(float).

SpotlightBuilder castsShadow(boolean castsShadow)

Refer to setCastsShadow(boolean).

SpotlightBuilder direction(Vector direction)

Refer to setDirection(Vector).

SpotlightBuilder innerAngle(float innerAngle)

Refer to setInnerAngle(float).

SpotlightBuilder outerAngle(float outerAngle)

Refer to setOuterAngle(float).

SpotlightBuilder position(Vector position)

Refer to setPosition(Vector).

SpotlightBuilder shadowBias(float shadowBias)

Refer to setShadowBias(float).

SpotlightBuilder shadowFarZ(float shadowFarZ)

Refer to setShadowFarZ(float).

SpotlightBuilder shadowMapSize(int shadowMapSize)

Refer to setShadowMapSize(int).

SpotlightBuilder shadowNearZ(float shadowNearZ)

Refer to setShadowNearZ(float).

SpotlightBuilder shadowOpacity(float opacity)

Refer to setShadowOpacity(float).

Public constructors

Spotlight.SpotlightBuilder

Spotlight.SpotlightBuilder ()

Constructor for SpotLightBuilder.

Public methods

attenuationEndDistance

SpotlightBuilder attenuationEndDistance (float attenuationEndDistance)

Refer to setAttenuationEndDistance(float).

Parameters
attenuationEndDistance float

Returns
SpotlightBuilder This builder.

attenuationStartDistance

SpotlightBuilder attenuationStartDistance (float attenuationStartDistance)

Refer to setAttenuationStartDistance(float).

Parameters
attenuationStartDistance float

Returns
SpotlightBuilder This builder.

castsShadow

SpotlightBuilder castsShadow (boolean castsShadow)

Refer to setCastsShadow(boolean).

Parameters
castsShadow boolean

Returns
SpotlightBuilder This builder.

direction

SpotlightBuilder direction (Vector direction)

Refer to setDirection(Vector).

Parameters
direction Vector

Returns
SpotlightBuilder This builder.

innerAngle

SpotlightBuilder innerAngle (float innerAngle)

Refer to setInnerAngle(float).

Parameters
innerAngle float

Returns
SpotlightBuilder This builder.

outerAngle

SpotlightBuilder outerAngle (float outerAngle)

Refer to setOuterAngle(float).

Parameters
outerAngle float

Returns
SpotlightBuilder This builder.

position

SpotlightBuilder position (Vector position)

Refer to setPosition(Vector).

Parameters
position Vector

Returns
SpotlightBuilder This builder.

shadowBias

SpotlightBuilder shadowBias (float shadowBias)

Refer to setShadowBias(float).

Parameters
shadowBias float

Returns
SpotlightBuilder This builder.

shadowFarZ

SpotlightBuilder shadowFarZ (float shadowFarZ)

Refer to setShadowFarZ(float).

Parameters
shadowFarZ float

Returns
SpotlightBuilder This builder.

shadowMapSize

SpotlightBuilder shadowMapSize (int shadowMapSize)

Refer to setShadowMapSize(int).

Parameters
shadowMapSize int

Returns
SpotlightBuilder This builder.

shadowNearZ

SpotlightBuilder shadowNearZ (float shadowNearZ)

Refer to setShadowNearZ(float).

Parameters
shadowNearZ float

Returns
SpotlightBuilder This builder.

shadowOpacity

SpotlightBuilder shadowOpacity (float opacity)

Refer to setShadowOpacity(float).

Parameters
opacity float

Returns
SpotlightBuilder This builder.

Hooray!