add normal matrix at PushConstant struct.

This commit is contained in:
hyzboy 2020-10-22 12:08:28 +08:00
parent 024b6dac9c
commit 1038ecc86b

View File

@ -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);