Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Options for converting glTF models to the integrated scene graph (foray::scene::Scene) More...
#include <foray_modelconverter.hpp>
Public Types | |
using | SceneSelectFunctionPointer = std::function< int32_t(tinygltf::Model &)> |
Public Attributes | |
SceneSelectFunctionPointer | SceneSelect = nullptr |
A model can define multiple scenes. Index 0 is selected automatically, set this function pointer to override this behavior. | |
bool | FlipY = false |
Flip the model in the Y direction on loading (experimental) | |
Options for converting glTF models to the integrated scene graph (foray::scene::Scene)
using foray::gltf::ModelConverterOptions::SceneSelectFunctionPointer = std::function<int32_t(tinygltf::Model&)> |
bool foray::gltf::ModelConverterOptions::FlipY = false |
Flip the model in the Y direction on loading (experimental)
If true:
Problems:
It is recommended to instead flip the viewport at some point later in the pipeline (for example when blitting to swapchain)
SceneSelectFunctionPointer foray::gltf::ModelConverterOptions::SceneSelect = nullptr |
A model can define multiple scenes. Index 0 is selected automatically, set this function pointer to override this behavior.