Fix struct packing
This commit is contained in:
parent
455b8f560a
commit
bee6e14b08
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
build/
|
||||
build.win/
|
||||
.vscode/
|
||||
.cache/
|
@ -7,7 +7,7 @@
|
||||
|
||||
namespace kek {
|
||||
|
||||
#pragma pack(1)
|
||||
#pragma pack(push, 1)
|
||||
struct ShaderLight {
|
||||
float color[3];
|
||||
float pad;
|
||||
@ -21,7 +21,7 @@ struct ShaderLight {
|
||||
//float lightSpaceMatrix[16]; // mat4
|
||||
float padding[2];
|
||||
};
|
||||
#pragma pack(0)
|
||||
#pragma pack(pop)
|
||||
|
||||
// Lighting data for shader
|
||||
struct LightingData {
|
||||
|
Loading…
Reference in New Issue
Block a user