use RG8 format Normal in GBuffer

This commit is contained in:
hyzboy 2020-10-27 11:22:04 +08:00
parent 5722e62605
commit 613be62b73

View File

@ -33,7 +33,7 @@ enum class GBufferAttachment
ENUM_CLASS_RANGE(Color,Normal) ENUM_CLASS_RANGE(Color,Normal)
};// };//
constexpr VkFormat gbuffer_color_format[size_t(GBufferAttachment::RANGE_SIZE)]={UFMT_RGBA32F,UFMT_RGBA32F}; constexpr VkFormat gbuffer_color_format[size_t(GBufferAttachment::RANGE_SIZE)]={UFMT_RGBA32F,UFMT_RG8};
constexpr VkFormat gbuffer_depth_format=FMT_D32F; constexpr VkFormat gbuffer_depth_format=FMT_D32F;
struct alignas(16) PhongPointLight struct alignas(16) PhongPointLight