Updated readability of the code.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / renderer / octree / raytracer / LightSource.java
index 0efe65b..3c963d6 100755 (executable)
@@ -7,20 +7,29 @@ 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 location.
+     */
+    Point3D location;
 
+    /**
+     * Light source color.
+     */
     public Color color;
 
+    /**
+     * Light source brightness.
+     */
     public float brightness;
 
     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;
     }