diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-12-03 01:06:21 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-12-03 01:06:21 +0000 |
| commit | 3d2dc82b3eebb0535ece175d090f4b67e0d1e021 (patch) | |
| tree | a193e1f674ba1821c67c1f47dbd2403b14700d84 /AssetLoader/interface | |
| parent | GLTFLoader: reworked material to load material attribs in a shader-friendly f... (diff) | |
| download | DiligentTools-3d2dc82b3eebb0535ece175d090f4b67e0d1e021.tar.gz DiligentTools-3d2dc82b3eebb0535ece175d090f4b67e0d1e021.zip | |
GLTF Loader: switched to using texture arrays
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; |
