Options controlling how a 3D scene file is decoded and mounted. 更多...
#include <SceneLoader.h>
Public 属性 | |
| bool | triangulate = true |
| bool | generateNormalsIfMissing = true |
| bool | joinIdenticalVertices = true |
| bool | flipUVs = true |
| bool | improveCacheLocality = true |
| bool | sharedMeshes = true |
| Reuse one GPU mesh when several nodes reference the same aiMesh. | |
| bool | mipmaps = true |
| Generate mipmaps + anisotropic filtering for imported textures. | |
| bool | importLights = true |
| Import aiLight entries as graphics::Light3D entities. | |
| bool | importCameras = false |
| Import aiCamera entries as inactive graphics::Camera3D entities. | |
| bool | importAnimations = true |
| Import aiAnimation clips (skeleton + clips exposed via accessors). | |
详细描述
Options controlling how a 3D scene file is decoded and mounted.
The first five toggles map to medialoader's Assimp post-processing steps (triangulate, generate-normals-if-missing, join-identical-vertices, flip-UVs, improve-cache-locality). All default to on; disabling one changes the decoded vertex layout (e.g. joinIdenticalVertices=false keeps per-face vertices for hard-edged flat shading). Tangents are not required by the default PBR pipeline (it derives its tangent frame from screen-space derivatives).
在文件 SceneLoader.h 第 99 行定义.
类成员变量说明
◆ flipUVs
| bool eve::sceneloader::LoadOptions::flipUVs = true |
在文件 SceneLoader.h 第 103 行定义.
◆ generateNormalsIfMissing
| bool eve::sceneloader::LoadOptions::generateNormalsIfMissing = true |
在文件 SceneLoader.h 第 101 行定义.
◆ importAnimations
| bool eve::sceneloader::LoadOptions::importAnimations = true |
Import aiAnimation clips (skeleton + clips exposed via accessors).
在文件 SceneLoader.h 第 114 行定义.
◆ importCameras
| bool eve::sceneloader::LoadOptions::importCameras = false |
Import aiCamera entries as inactive graphics::Camera3D entities.
在文件 SceneLoader.h 第 112 行定义.
◆ importLights
| bool eve::sceneloader::LoadOptions::importLights = true |
Import aiLight entries as graphics::Light3D entities.
在文件 SceneLoader.h 第 110 行定义.
◆ improveCacheLocality
| bool eve::sceneloader::LoadOptions::improveCacheLocality = true |
在文件 SceneLoader.h 第 104 行定义.
◆ joinIdenticalVertices
| bool eve::sceneloader::LoadOptions::joinIdenticalVertices = true |
在文件 SceneLoader.h 第 102 行定义.
◆ mipmaps
| bool eve::sceneloader::LoadOptions::mipmaps = true |
Generate mipmaps + anisotropic filtering for imported textures.
在文件 SceneLoader.h 第 108 行定义.
◆ sharedMeshes
| bool eve::sceneloader::LoadOptions::sharedMeshes = true |
Reuse one GPU mesh when several nodes reference the same aiMesh.
在文件 SceneLoader.h 第 106 行定义.
◆ triangulate
| bool eve::sceneloader::LoadOptions::triangulate = true |
在文件 SceneLoader.h 第 100 行定义.
该结构体的文档由以下文件生成:
- src/modules/sceneloader/SceneLoader.h