From eafb6c023a063d9932c2dc6d7f2163cc3a95415c Mon Sep 17 00:00:00 2001 From: assiduous Date: Sun, 29 Nov 2020 20:31:32 -0800 Subject: GLTF Loader: added texture coordinate scale and bias for use in texture atlas --- AssetLoader/interface/GLTFLoader.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'AssetLoader/interface') diff --git a/AssetLoader/interface/GLTFLoader.hpp b/AssetLoader/interface/GLTFLoader.hpp index 1420d89..16a95b5 100644 --- a/AssetLoader/interface/GLTFLoader.hpp +++ b/AssetLoader/interface/GLTFLoader.hpp @@ -86,6 +86,13 @@ struct Material Uint8 Normal = 0; Uint8 Occlusion = 0; Uint8 Emissive = 0; + + float4 BaseColorScaleBias = float4{1, 1, 0, 0}; + float4 MetallicRoughnessScaleBias = float4{1, 1, 0, 0}; + float4 SpecularGlossinessScaleBias = float4{1, 1, 0, 0}; + float4 NormalScaleBias = float4{1, 1, 0, 0}; + float4 OcclusionScaleBias = float4{1, 1, 0, 0}; + float4 EmissiveScaleBias = float4{1, 1, 0, 0}; }; TextureCoordinateSets TexCoordSets; -- cgit v1.2.3