Fix build breakage.

We were declaring one too many material properties which would
lead to out of bounds writes/reads.
This commit is contained in:
Romain Guy
2020-12-12 12:04:24 -08:00
parent a3bfdb89fa
commit 9ad3d88d74

View File

@@ -179,7 +179,7 @@ enum class RefractionType : uint8_t {
// can't really use std::underlying_type<AttributeIndex>::type because the driver takes a uint32_t
using AttributeBitset = utils::bitset32;
static constexpr size_t MATERIAL_PROPERTIES_COUNT = 27;
static constexpr size_t MATERIAL_PROPERTIES_COUNT = 26;
enum class Property : uint8_t {
BASE_COLOR, //!< float4, all shading models
ROUGHNESS, //!< float, lit shading models only