/*
- * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
- *
+ * Sixth 3D engine. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
*/
-
package eu.svjatoslav.sixth.e3d.renderer.octree.raytracer;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
+/**
+ * Represents light source.
+ */
public class LightSource {
- public int x, y, z;
-
+ /**
+ * Light source color.
+ */
public Color color;
-
+ /**
+ * Light source brightness.
+ */
public float brightness;
+ /**
+ * Light source location.
+ */
+ Point3D location;
public LightSource(final Point3D location, final Color color,
final float Brightness) {
- x = (int) location.x;
- y = (int) location.y;
- z = (int) location.z;
-
+ this.location = location;
this.color = color;
brightness = Brightness;
}