git.s-ol.nu ~forks/DiligentFX / ed2d714
GLTF PBR Renderer: few updates to GLTFNodeRenderInfo assiduous 10 months ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
181181 struct GLTFNodeRenderInfo
182182 {
183183 /// GLTF material
184 const GLTF::Material* pMaterial = nullptr;
184 Uint32 MaterialId = 0;
185185
186186 /// GLTF node transforms
187187 const GLTF::Mesh::TransformData* pTransformData = nullptr;
209209
210210 struct ModelResourceBindings
211211 {
212 void Clear()
213 {
214 MaterialSRB.clear();
215 }
212216 std::vector<RefCntAutoPtr<IShaderResourceBinding>> MaterialSRB;
213217 };
214218
819819 else
820820 {
821821 GLTFNodeRenderInfo NodeRI;
822 NodeRI.pMaterial = &material;
822 NodeRI.MaterialId = primitive.MaterialId;
823823 NodeRI.pTransformData = &Node.Mesh->Transforms;
824824 NodeRI.IndexType = primitive.HasIndices() ? VT_UINT32 : VT_UNDEFINED;
825825 NodeRI.BaseVertex = BaseVertex;