ambientLight

beta
light
ambientLight
RayTK
v0.42

Ambient light source that doesn’t come from a particular location.

As far as a material is concerned, an ambient light is always right in front of any point on a surface.

Use cases for this are relatively rare.

Parameters

Name Description Regular Handling Read-Only Handling
Intensity

Brightness that is applied to the Color.

Runtime Baked
Color

Color of the light.

Runtime Baked
Enable Shadow

Whether the light should produce shadows.

Runtime Baked

Inputs

  • Color Field: (optional) Field controls the color of the light based on the position of surface hits where it is being applied. The resulting color is multiplied by the `Color` parameter and `Intensity`.
    • Coordinate Types: vec3
    • Context Types: LightContext
    • Return Types: float vec4
    • Supports Variables: lightdir

Variables

  • Light Direction: