From 6c9b61a38433678f36c73e0799e2ac80cfe8153a Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 16 Dec 2023 12:49:44 -0800 Subject: [PATCH] Asset loader: updated readme --- AssetLoader/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/AssetLoader/README.md b/AssetLoader/README.md index b9bd1783..be0cfcdc 100644 --- a/AssetLoader/README.md +++ b/AssetLoader/README.md @@ -29,6 +29,23 @@ The following features are currently supported: The loading functionality is implemented in `Diligent::GLTF::Model` class that initializes all Diligent Engine objects required to render the model. +The following code snippet shows a basic usage of the loader: + +```cpp +GLTF::ModelCreateInfo ModelCI; +ModelCI.FileName = "MyAsset.gltf"; + +m_Model = std::make_unique(m_pDevice, m_pImmediateContext, ModelCI); +``` + +The loader is very flexible and provides multiple ways to customize the loading process. +Among others, the following parameters can be specified: + +* Texture attribute configuration +* Vertex layout +* Node, Mesh, Primitive, and Material loading callbacks +* GPU resource cache + The loader does have any rendering capabilities. Please see [Diligent GLTF PBR Renderer](https://github.com/DiligentGraphics/DiligentFX/tree/master/PBR).