All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.viseon.threejs.declarations.lights.Light.kt Maven / Gradle / Ivy

Go to download

Kotlin wrapper for ThreeJs, javascript library for 3d rendering

There is a newer version: 126.0.0
Show newest version
@file:JsModule("three")
package ch.viseon.threejs.declarations.lights

	/**
	* Abstract base class for lights - all other light types inherit the properties and methods described here.
	*/
open external class Light(color: Int = definedExternally, intensity: Double = definedExternally): ch.viseon.threejs.declarations.core.Object3D{

	/**
	* Color of the light. Defaults to a new [page:Color] set to white, if not passed in the constructor.
	*/
	open var color: ch.viseon.threejs.declarations.math.Color  = definedExternally


	/**
	* The light's intensity, or strength. In [page:WebGLRenderer.physicallyCorrectLights physically correct] mode, the product of [page:.color color] ** intensity is interpreted as luminous intensity measured in candela. Default - **1.0**.
	*/
	open var intensity: Double  = definedExternally


	/**
	* Copies the value of [page:.color color] and [page:.intensity intensity] from the [page:Light source] light into this one.
	*/
	open fun copy(source: ch.viseon.threejs.declarations.lights.Light = definedExternally) : ch.viseon.threejs.declarations.lights.Light


	/**
	* meta -- object containing metadata such as materials, textures for objects. Convert the light to three.js [link:https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 JSON Object/Scene format].
	*/
	override fun toJSON(meta: dynamic) : dynamic
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy