rayzor

view src/light.cc @ 12:d94a69933a71

lots of stuff, can't remember
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 12 Apr 2014 23:28:24 +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 }