summaryrefslogtreecommitdiff
path: root/src/extend/light.h
blob: 410dd7226e2eaac405c256d43adef7e6520b5a29 (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
#ifndef _SOFTSHADEROOM_LIGHT_H_
#define _SOFTSHADEROOM_LIGHT_H_

#include "../math/math.h"
#include "../core/texture.h"
#include "transform.h"

typedef enum {
	LIGHT_POINT, 
	LIGHT_DIRECTION,
	LIGHT_SPOT,
} LightMode;

typedef struct {
	Transform transform;
	LightMode mode;
	Color32 color;
	float range;
} Light;

// LUT for lights
Texture* light_attenuation_tex;
Texture* light_cookie_tex;

#endif