16 lines
233 B
GLSL
16 lines
233 B
GLSL
#ifndef GLOBAL_GLSL
|
|
#define GLOBAL_GLSL
|
|
|
|
struct View
|
|
{
|
|
mat4 world_to_clip;
|
|
mat4 view_to_clip;
|
|
mat4 world_to_view;
|
|
};
|
|
|
|
layout(binding = 0, std430, row_major) uniform GlobalUniform {
|
|
View view;
|
|
} Global;
|
|
|
|
#endif // GLOBAL_GLSL
|