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