X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Frenderer%2Foctree%2Fraytracer%2FLightSource.java;h=3c963d6f9f06cecb7dc1dcf4313acfe05c806f69;hp=0efe65b3322c77972f38069b2ed7cf0dfee57f77;hb=cad5276b56cfbd0b194dbacb894fea20b9dd5b15;hpb=6b9b5a6b70397f3cea7b965a54aaacc03cdae4f7 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/LightSource.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/LightSource.java index 0efe65b..3c963d6 100755 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/LightSource.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/octree/raytracer/LightSource.java @@ -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; }