rayzor

view src/light.cc @ 16:4d87b0aafbb0

forgot to add the redblack tree
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Apr 2014 09:54:51 +0300
parents a826bf0fb169
children 79609d482762
line source
1 #include "light.h"
3 Light::Light()
4 {
5 type = NODE_LIGHT;
6 color.x = color.y = color.z = 1.0;
7 atten.x = 1.0;
8 atten.y = 0.0;
9 atten.z = 0.0;
10 }
12 void Light::set_color(const Vector3 &color)
13 {
14 this->color = color;
15 }
17 const Vector3 &Light::get_color() const
18 {
19 return color;
20 }
23 void Light::set_attenuation(const Vector3 &atten)
24 {
25 this->atten = atten;
26 }
28 const Vector3 &Light::get_attenuation() const
29 {
30 return atten;
31 }
33 void Light::draw() const
34 {
35 }
37 bool Light::intersect(const Ray &ray, float *dist)
38 {
39 return false;
40 }