summaryrefslogtreecommitdiff
path: root/intermediate/forward.h
blob: 377a3cb58ac1677e02c2ae7f312aee00d21f1631 (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef forward_h
#define forward_h
#ifdef DESC

[struct]
name: Light
[variable]
name: pos
type: vec3
[variable]
name: brightness
type: float
[variable]
name: colour
type: vec3
[variable]
name: caster_id
type: int
[variable]
name: type
type: int
[variable]
name: range
type: float

[struct]
name: Caster
[variable]
name: projection
type: mat4

[struct]
name: Globals
[variable]
name: camera_pos
type: vec3
[variable]
name: light_count
type: int
[variable]
name: frame
type: int

[cbuffer]
name: globals
type: Globals
stage: fragment

#endif

/* match Light::Type in lighting.hpp */
#define LT_SUN 0
#define LT_POINT 1

#endif