diff options
Diffstat (limited to 'AssetLoader/interface')
| -rw-r--r-- | AssetLoader/interface/GLTFLoader.hpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index f378e46..2d10900 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -88,10 +88,20 @@ struct Material float PhysicalDescriptorUVSelector = -1; float NormalUVSelector = -1; - float OcclusionUVSelector = -1; - float EmissiveUVSelector = -1; - float MetallicFactor = 1; - float RoughnessFactor = 1; + float OcclusionUVSelector = -1; + float EmissiveUVSelector = -1; + float BaseColorSlice = 0; + float PhysicalDescriptorSlice = 0; + + float NormalSlice = 0; + float OcclusionSlice = 0; + float EmissiveSlice = 0; + float MetallicFactor = 1; + + float RoughnessFactor = 1; + int UseAlphaMask = 0; + float AlphaCutoff = 0.5f; + float Dummy0; // When texture atlas is used, UV scale and bias applied to // each texture coordinate set @@ -100,11 +110,6 @@ struct Material float4 NormalUVScaleBias = float4{1, 1, 0, 0}; float4 OcclusionUVScaleBias = float4{1, 1, 0, 0}; float4 EmissiveUVScaleBias = float4{1, 1, 0, 0}; - - int UseAlphaMask = 0; - float AlphaCutoff = 0.5f; - float Dummy0; - float Dummy1; }; static_assert(sizeof(ShaderAttribs) % 16 == 0, "ShaderAttribs struct must be 16-byte aligned"); ShaderAttribs Attribs; |
