cesium-native 0.67.0
Loading...
Searching...
No Matches
CesiumGltfReader::SpzDecoderOptions Struct Reference

Options for decoding SPZ data. More...

#include <CesiumGltfReader/GltfReader.h>

Public Attributes

bool forceFloatAccessors = false
 If true, all accessors will be forced to use the FLOAT component type, regardless of the original data type.
 
bool applySigmoidToOpacity = true
 If true, the KHR_gaussian_splatting:OPACITY accessor will have the sigmoid function applied to its values.
 
bool preserveLogScaleValues = false
 If true, KHR_gaussian_splatting:SCALE values will be preserved in their logarithmic form, without applying any conversion.
 

Detailed Description

Options for decoding SPZ data.

Definition at line 30 of file GltfReader.h.

Member Data Documentation

◆ applySigmoidToOpacity

bool CesiumGltfReader::SpzDecoderOptions::applySigmoidToOpacity = true

If true, the KHR_gaussian_splatting:OPACITY accessor will have the sigmoid function applied to its values.

Disabling this will pass the opacity values from spz directly to the glTF accessor. This setting does not affect the alpha component of COLOR_0, which will always have the transformation applied.

Definition at line 48 of file GltfReader.h.

◆ forceFloatAccessors

bool CesiumGltfReader::SpzDecoderOptions::forceFloatAccessors = false

If true, all accessors will be forced to use the FLOAT component type, regardless of the original data type.

As the spz library outputs float data directly, this option can avoid unnecessary conversions to other component types.

Definition at line 38 of file GltfReader.h.

◆ preserveLogScaleValues

bool CesiumGltfReader::SpzDecoderOptions::preserveLogScaleValues = false

If true, KHR_gaussian_splatting:SCALE values will be preserved in their logarithmic form, without applying any conversion.

Definition at line 54 of file GltfReader.h.


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