From 1038ecc86beb32329bd6000d00da8af98bc8f8b9 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 22 Oct 2020 12:08:28 +0800 Subject: [PATCH] add normal matrix at PushConstant struct. --- inc/hgl/graph/VK.h | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/hgl/graph/VK.h b/inc/hgl/graph/VK.h index 25fc8248..0c737e6c 100644 --- a/inc/hgl/graph/VK.h +++ b/inc/hgl/graph/VK.h @@ -122,6 +122,7 @@ inline const uint GetShaderCountByBits(const uint32_t bits) struct PushConstant { Matrix4f local_to_world; + Matrix4f normal; }; constexpr uint32_t MAX_PUSH_CONSTANT_BYTES=sizeof(PushConstant);