Changed license to Creative Commons Zero (CC0).
[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 *
6  */
7
8 package eu.svjatoslav.sixth.e3d.renderer.octree.raytracer;
9
10 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
11 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
12
13 public class LightSource {
14
15     public int x, y, z;
16
17     public Color color;
18
19     public float brightness;
20
21     public LightSource(final Point3D location, final Color color,
22                        final float Brightness) {
23         x = (int) location.x;
24         y = (int) location.y;
25         z = (int) location.z;
26
27         this.color = color;
28         brightness = Brightness;
29     }
30
31 }