Formatting update
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / renderer / octree / raytracer / LightSource.java
1 /*
2  * Sixth 3D engine. Author: Svjatoslav Agejenko. 
3  * This project is released under Creative Commons Zero (CC0) license.
4  */
5 package eu.svjatoslav.sixth.e3d.renderer.octree.raytracer;
6
7 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
8 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
9
10 public class LightSource {
11
12     public int x, y, z;
13
14     public Color color;
15
16     public float brightness;
17
18     public LightSource(final Point3D location, final Color color,
19                        final float Brightness) {
20         x = (int) location.x;
21         y = (int) location.y;
22         z = (int) location.z;
23
24         this.color = color;
25         brightness = Brightness;
26     }
27
28 }