Package snap.gfx3d
Class Light3D
java.lang.Object
snap.gfx3d.Light3D
This class represents a light in a scene.
The current implementation simply models a distant light aligned with the camera along with an ambient light.
Future versions could expand this into full support for ambient lights, distant lights and spot lights. There
could even be a class called LightSet, so multiple lights could be supported but the simple API could be preserved.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRenderColor
(Vector3D normal, Color aColor) Returns the render color for this light for given normal and color.
-
Constructor Details
-
Light3D
public Light3D()Constructor.
-
-
Method Details
-
getRenderColor
Returns the render color for this light for given normal and color.
-