goat3d
view src/light.h @ 58:d317eb4f83da
- made everything compile properly on windows again
- removed libanim/libvmath, we'll use them as external dependencies
- added new maxgoat_stub 3dsmax plugin project. Gets loaded as a max plugin and
loads the actual maxgoat (and later maxgoat_anim) exporters on demand, to
allow reloading the actual exporters without having to restart 3dsmax (which
takes AGES).
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 25 Mar 2014 03:19:55 +0200 |
parents | cd71f0b92f44 |
children | dad392c710df |
line source
1 #ifndef LIGHT_H_
2 #define LIGHT_H_
4 #include <vmath/vmath.h>
5 #include "object.h"
7 namespace g3dimpl {
9 class Light : public Object {
10 public:
11 Vector3 color;
12 Vector3 attenuation;
13 float max_dist;
15 Light();
16 };
18 class DirLight : public Light {
19 public:
20 Vector3 dir;
22 DirLight();
23 };
25 class SpotLight : public DirLight {
26 public:
27 float inner_cone, outer_cone;
29 SpotLight();
30 };
32 } // namespace g3dimpl
34 #endif // LIGHT_H_