Most visited

Recently visited

AmbientLight

public class AmbientLight
extends Light

java.lang.Object
   ↳ com.viro.core.Light
     ↳ com.viro.core.AmbientLight


AmbientLight is a Light that emits ambient light that affects all objects equally, at constant intensity in all directions. The Node containing the AmbientLight does not impact the light in any way.

AmbientLight is used to simulate indirect, constant environmental light.

AmbientLight does not cast shadows.

For an extended discussion on Lights, refer to the Lighting and Materials Guide.

Summary

Nested classes

class AmbientLight.AmbientLightBuilder<R extends Light, B extends LightBuilder<R, B>>

Builder for creating AmbientLight objects. 

Public constructors

AmbientLight()

Construct a new AmbientLight with default values: white color, normal intensity.

AmbientLight(long color, float intensity)

Construct a new AmbientLight with the given color and intensity.

Public methods

static AmbientLightBuilder<? extends Light, ? extends LightBuilder> builder()

Builder for creating AmbientLight objects.

Public constructors

AmbientLight

AmbientLight ()

Construct a new AmbientLight with default values: white color, normal intensity.

AmbientLight

AmbientLight (long color, 
                float intensity)

Construct a new AmbientLight with the given color and intensity.

Parameters
color long: The Color of the light.

intensity float: The intensity, where 1000 is normal intensity.

Public methods

builder

AmbientLightBuilder<? extends Light, ? extends LightBuilder> builder ()

Builder for creating AmbientLight objects.

Returns
AmbientLightBuilder<? extends Light, ? extends LightBuilder>

Hooray!