Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Attributes | List of all members
foray::gltf::ModelConverterOptions Struct Reference

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)
 

Detailed Description

Options for converting glTF models to the integrated scene graph (foray::scene::Scene)

Member Typedef Documentation

◆ SceneSelectFunctionPointer

using foray::gltf::ModelConverterOptions::SceneSelectFunctionPointer = std::function<int32_t(tinygltf::Model&)>

Member Data Documentation

◆ FlipY

bool foray::gltf::ModelConverterOptions::FlipY = false

Flip the model in the Y direction on loading (experimental)

If true:

  • Y translation is inverted
  • Y Vertex positions and normals are inverted
  • Vertex order is flipped

Problems:

  • Rotations are likely to break

It is recommended to instead flip the viewport at some point later in the pipeline (for example when blitting to swapchain)

◆ SceneSelect

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.


The documentation for this struct was generated from the following file: