DirectionalLightDslReceiver

This Interface contains all the functions that will be exposed to Koltin DSL.

Separated the DSL receiver class to this interface to avoid IDE code suggestion for property getters.

Functions

Link copied to clipboard
abstract fun castShadows(castShadows: Expression): DirectionalLight
abstract fun castShadows(castShadows: Boolean = false): DirectionalLight

Enable/Disable shadow casting for this light

Link copied to clipboard
abstract fun color(color: Expression): DirectionalLight
abstract fun color(@ColorInt color: Int): DirectionalLight
abstract fun color(color: String = "#ffffff"): DirectionalLight

Color of the directional light.

Link copied to clipboard

Set the Color property transition options.

Link copied to clipboard
abstract fun direction(direction: Expression): DirectionalLight
abstract fun direction(direction: List<Double> = listOf(210.0, 30.0)): DirectionalLight

Direction of the light source specified as a azimuthal angle, p polar angle where a indicates the azimuthal angle of the light relative to north (in degrees and proceeding clockwise), and p indicates polar angle of the light (from 0 degree, directly above, to 180 degree, directly below).

Link copied to clipboard

Set the Direction property transition options.

Link copied to clipboard
abstract fun intensity(intensity: Expression): DirectionalLight
abstract fun intensity(intensity: Double = 0.5): DirectionalLight

A multiplier for the color of the directional light.

Link copied to clipboard

Set the Intensity property transition options.

Link copied to clipboard
abstract fun shadowIntensity(shadowIntensity: Expression): DirectionalLight
abstract fun shadowIntensity(shadowIntensity: Double = 1.0): DirectionalLight

Determines the shadow strength, affecting the shadow receiver surfaces final color. Values near 0.0 reduce the shadow contribution to the final color. Values near to 1.0 make occluded surfaces receive almost no directional light. Designed to be used mostly for transitioning between values 0 and 1.

Link copied to clipboard

Set the ShadowIntensity property transition options.

Inheritors

Link copied to clipboard