diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-31 15:43:08 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-31 15:43:08 +1100 |
commit | 1b4c27d514423c9e27a93742b8c8e9eb9f588e27 (patch) | |
tree | 5ff908aefc3d67982690a11c44071d43713bdcb9 /assets | |
parent | a56349f682862f065c5e5af6183643fcb1f19617 (diff) |
fix discrepancy between opengl and vulkan
Diffstat (limited to 'assets')
-rw-r--r-- | assets/shaders/blinn_phong.vert | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/assets/shaders/blinn_phong.vert b/assets/shaders/blinn_phong.vert index 041c3d1..6028178 100644 --- a/assets/shaders/blinn_phong.vert +++ b/assets/shaders/blinn_phong.vert @@ -4,13 +4,10 @@ layout (location = 0) in vec3 inPos; layout (location = 1) in vec3 inNormal; layout (location = 2) in vec2 inTexCoords; -// Uniform block -layout (std140, binding = 0) uniform MatrixBlock { - mat4 model; - mat4 view; - mat4 projection; - mat4 lightSpaceMatrix; -}; +uniform mat4 model; +uniform mat4 view; +uniform mat4 projection; +uniform mat4 lightSpaceMatrix; // Output out VS_OUT { |