nngn
Loading...
Searching...
No Matches
light_ubo.h
Go to the documentation of this file.
1
#include "
../const.h
"
2
3
struct
DirLights
{
4
vec4
dir
[
NNGN_MAX_LIGHTS
];
5
vec4
color_spec
[
NNGN_MAX_LIGHTS
];
6
mat4
mat
[
NNGN_MAX_LIGHTS
];
7
};
8
9
struct
PointLights
{
10
vec4
dir
[
NNGN_MAX_LIGHTS
];
11
vec4
color_spec
[
NNGN_MAX_LIGHTS
];
12
vec4
pos
[
NNGN_MAX_LIGHTS
];
13
vec4
att_cutoff
[
NNGN_MAX_LIGHTS
];
14
};
15
16
LAYOUT2
(
set
= 0, binding = 0) uniform Lights {
17
uint flags;
18
float
depth_transform0, depth_transform1;
19
vec3
view_pos;
20
uint
n_dir
;
21
vec3
ambient;
22
uint n_point;
23
DirLights
dir;
24
PointLights
point;
25
}
lights
;
LAYOUT2
#define LAYOUT2(x, y)
Definition
common.h:12
const.h
NNGN_MAX_LIGHTS
#define NNGN_MAX_LIGHTS
Definition
const.h:6
n_dir
local n_dir
Definition
dump_lights.lua:1
lights
lights
Definition
light_ubo.h:25
pos
pos
Definition
lua_audio.cpp:17
set
set
Definition
camera.lua:47
DirLights
Definition
light_ubo.h:3
DirLights::color_spec
vec4 color_spec[8]
Definition
light_ubo.h:5
DirLights::mat
mat4 mat[8]
Definition
light_ubo.h:6
DirLights::dir
vec4 dir[8]
Definition
light_ubo.h:4
PointLights
Definition
light_ubo.h:9
PointLights::color_spec
vec4 color_spec[8]
Definition
light_ubo.h:11
PointLights::att_cutoff
vec4 att_cutoff[8]
Definition
light_ubo.h:13
PointLights::dir
vec4 dir[8]
Definition
light_ubo.h:10
vec3
local vec3
Definition
zelda.lua:8
src
glsl
light_ubo.h
Generated by
1.11.0