Class LightSource
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.octree.raytracer.LightSource
Represents light source.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatLight source brightness.Light source color. -
Constructor Summary
ConstructorsConstructorDescriptionLightSource(Point3D location, Color color, float Brightness) Creates a light source at the given location with the specified color and brightness. -
Method Summary
-
Field Details
-
color
Light source color. -
brightness
public float brightnessLight source brightness.
-
-
Constructor Details
-
LightSource
Creates a light source at the given location with the specified color and brightness.- Parameters:
location- the position of the light source in world spacecolor- the color of the lightBrightness- the brightness multiplier (0.0 = off, 1.0 = full)
-