cesium-native  0.41.0
Cesium3DTilesSelection::TilesetContentOptions Struct Reference

Options for configuring the parsing of a Tileset's content and construction of Gltf models. More...

#include <Cesium3DTilesSelection/TilesetOptions.h>

Public Attributes

bool enableWaterMask = false
 Whether to include a water mask within the Gltf extras. More...
 
bool generateMissingNormalsSmooth = false
 Whether to generate smooth normals when normals are missing in the original Gltf. More...
 
CesiumGltf::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.
 

Detailed Description

Options for configuring the parsing of a Tileset's content and construction of Gltf models.

Definition at line 23 of file TilesetOptions.h.

Member Data Documentation

◆ 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 30 of file TilesetOptions.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 42 of file TilesetOptions.h.


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