![JAR search and dependency download from the Maven repository](/logo.png)
main.cesium.DirectionalLight.kt Maven / Gradle / Ivy
The newest version!
// Automatically generated - do not modify!
@file:JsModule("cesium")
@file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package cesium
/**
* A light that gets emitted in a single direction from infinitely far away.
* @see Online Documentation
*/
external class DirectionalLight(options: ConstructorOptions) : Light {
/**
* @property [direction] The direction in which light gets emitted.
* @property [color] The color of the light.
* Default value - [Color.WHITE]
* @property [intensity] The intensity of the light.
* Default value - `1.0`
*/
interface ConstructorOptions {
var direction: Cartesian3
var color: Color?
var intensity: Double?
}
/**
* The direction in which light gets emitted.
* @see Online Documentation
*/
var direction: Cartesian3
/**
* The color of the light.
* @see Online Documentation
*/
override var color: Color
/**
* The intensity of the light.
* @see Online Documentation
*/
override var intensity: Double
}
inline fun DirectionalLight(
block: DirectionalLight.ConstructorOptions.() -> Unit,
): DirectionalLight {
val options: DirectionalLight.ConstructorOptions = js("({})")
block(options)
return DirectionalLight(options)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy