16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 17:09:19 +02:00
This commit is contained in:
milek7
2018-07-16 00:20:07 +02:00
parent 4c855d5980
commit a29379ed8b
6 changed files with 12 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
#include "object.h"
#include "bindable.h"
#define UBS_PAD(x) uint64_t : x * 4; uint64_t : x * 4;
#define UBS_PAD(x) uint8_t PAD[x]
namespace gl
{
@@ -38,7 +38,7 @@ namespace gl
glm::mat4 projection;
glm::mat4 lightview;
float time;
UBS_PAD(12)
UBS_PAD(12);
};
static_assert(sizeof(scene_ubs) == 144, "bad size of ubs");
@@ -54,7 +54,7 @@ namespace gl
glm::vec3 velocity;
float opacity;
float emission;
UBS_PAD(12)
UBS_PAD(12);
void set_modelview(const glm::mat4 &mv)
{