e9bcbe14773c29650de4cf35a7cafe100a6f6a9b
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / renderer / octree / raytracer / LightSource.java
1 /*
2  * Sixth 3D engine. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of version 3 of the GNU Lesser General Public License
6  * or later as published by the Free Software Foundation.
7  *
8  */
9
10 package eu.svjatoslav.sixth.e3d.renderer.octree.raytracer;
11
12 import eu.svjatoslav.sixth.e3d.geometry.Point3D;
13 import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
14
15 public class LightSource {
16
17     public int x, y, z;
18
19     public Color color;
20
21     public float brightness;
22
23     public LightSource(final Point3D location, final Color color,
24                        final float Brightness) {
25         x = (int) location.x;
26         y = (int) location.y;
27         z = (int) location.z;
28
29         this.color = color;
30         brightness = Brightness;
31     }
32
33 }