Package nl.colorize.multimedialib.stage
Class Light
java.lang.Object
nl.colorize.multimedialib.stage.Light
- All Implemented Interfaces:
StageNode3D
Light source that influences 3D graphics on the stage. Note these lights
exist in addition to the ambient light, which can be changed using
Stage.setAmbientLightColor(ColorRGB).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by the renderer at the end of frame updates, while rendering the stage.getColor()Returns this node's global transform, which is interpreted relative to the stage.floatReturns this node's local transform, which is interpreted relative to its parent node.voidvoidsetIntensity(float intensity) toString()
-
Constructor Details
-
Light
-
-
Method Details
-
animate
Description copied from interface:StageNode3DCalled by the renderer at the end of frame updates, while rendering the stage.animationTimercontains the elapsed time since the currently active scene was started. This allows animations to display correctly, without the need to update every single node during each frame update.- Specified by:
animatein interfaceStageNode3D
-
toString
-
getTransform
Description copied from interface:StageNode3DReturns this node's local transform, which is interpreted relative to its parent node. The local transform can be modified by application code to modify how and where the node is displayed.- Specified by:
getTransformin interfaceStageNode3D
-
getGlobalTransform
Description copied from interface:StageNode3DReturns this node's global transform, which is interpreted relative to the stage. The global transform is updated by the renderer when drawing the stage at the end of frame updates. Recalculating the global transform is relatively expensive, and is therefore only done once per frame. This means that any changes made to a node's local transform since the last frame update may not yet been reflected in the current state of its global transform.- Specified by:
getGlobalTransformin interfaceStageNode3D
-
getColor
-
getIntensity
public float getIntensity() -
setColor
-
setIntensity
public void setIntensity(float intensity)
-