summaryrefslogtreecommitdiff
path: root/gfx/models/lights.h
blob: 586b3ef87315c20db31297a127d7997a4245380e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "config/types.h"

struct LightCommon {
	RelativePosition3D position;
	RGB colour;
	RelativeDistance kq;
};

struct LightCommonVertex {
	uint32_t parentObject;
};

struct SpotLightDef : LightCommon {
	Direction3D direction;
	Angle arc;
};

struct PointLightDef : LightCommon { };

struct SpotLightVertex : SpotLightDef, LightCommonVertex {
	SpotLightVertex(const SpotLightDef &, uint32_t);
};

struct PointLightVertex : PointLightDef, LightCommonVertex {
	PointLightVertex(const PointLightDef &, uint32_t);
};