cesium-native 0.62.0
Loading...
Searching...
No Matches
Cesium3DTilesSelection::TilesetContentOptions Struct Reference

Options for configuring the parsing the contents of a Tileset, including construction of its glTF models. More...

#include <Cesium3DTilesSelection/TilesetContentOptions.h>

Public Member Functions

CesiumGltfReader::GltfReaderOptions toGltfReaderOptions () const
 Extracts options related to loading glTFs to a new instance of CesiumGltfReader::GltfReaderOptions .
 

Public Attributes

bool enableWaterMask = false
 Whether to include a water mask within the Gltf extras.
 
bool generateMissingNormalsSmooth = false
 Whether to generate smooth normals when normals are missing in the original Gltf.
 
CesiumImage::Ktx2TranscodeTargets ktx2TranscodeTargets
 For each possible input transmission format, this struct names the ideal target gpu-compressed pixel format to transcode to.
 
bool applyTextureTransform = true
 Whether or not to transform texture coordinates during load when textures have the KHR_texture_transform extension. Set this to false if texture coordinates will be transformed another way, such as in a vertex shader.
 
CesiumGltfReader::MeshPrimitiveModeOptions primitiveModeOptions
 Options for handling values of CesiumGltf::MeshPrimitive::Mode that appear in a glTF mesh primitive.
 

Detailed Description

Options for configuring the parsing the contents of a Tileset, including construction of its glTF models.

Definition at line 13 of file TilesetContentOptions.h.

Member Data Documentation

◆ applyTextureTransform

bool Cesium3DTilesSelection::TilesetContentOptions::applyTextureTransform = true

Whether or not to transform texture coordinates during load when textures have the KHR_texture_transform extension. Set this to false if texture coordinates will be transformed another way, such as in a vertex shader.

Definition at line 46 of file TilesetContentOptions.h.

◆ enableWaterMask

bool Cesium3DTilesSelection::TilesetContentOptions::enableWaterMask = false

Whether to include a water mask within the Gltf extras.

Currently only applicable for quantized-mesh tilesets that support the water mask extension.

Definition at line 20 of file TilesetContentOptions.h.

◆ generateMissingNormalsSmooth

bool Cesium3DTilesSelection::TilesetContentOptions::generateMissingNormalsSmooth = false

Whether to generate smooth normals when normals are missing in the original Gltf.

According to the Gltf spec: "When normals are not specified, client implementations should calculate flat normals." However, calculating flat normals requires duplicating vertices. This option allows the gltfs to be sent with explicit smooth normals when the original gltf was missing normals.

Definition at line 32 of file TilesetContentOptions.h.

◆ ktx2TranscodeTargets

CesiumImage::Ktx2TranscodeTargets Cesium3DTilesSelection::TilesetContentOptions::ktx2TranscodeTargets

For each possible input transmission format, this struct names the ideal target gpu-compressed pixel format to transcode to.

Definition at line 38 of file TilesetContentOptions.h.

◆ primitiveModeOptions

CesiumGltfReader::MeshPrimitiveModeOptions Cesium3DTilesSelection::TilesetContentOptions::primitiveModeOptions

Options for handling values of CesiumGltf::MeshPrimitive::Mode that appear in a glTF mesh primitive.

Definition at line 52 of file TilesetContentOptions.h.


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