Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumPointCloudShading.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4namespace CesiumForUnity
5{
6 [Serializable]
11 {
12 [SerializeField]
13 private bool _attenuation = false;
14
19 public bool attenuation
20 {
21 get => this._attenuation;
22 set => this._attenuation = value;
23 }
24
25 [SerializeField]
26 private float _geometricErrorScale = 1.0f;
27
33 {
34 get => this._geometricErrorScale;
35 set
36 {
37 this._geometricErrorScale = Mathf.Max(value, 0.0f);
38 }
39 }
40
41 [SerializeField]
42 private float _maximumAttenuation = 0.0f;
43
48 public float maximumAttenuation
49 {
50 get => this._maximumAttenuation;
51 set
52 {
53 this._maximumAttenuation = Mathf.Max(value, 0.0f);
54 }
55 }
56
57 [SerializeField]
58 private float _baseResolution = 0.0f;
59
70 public float baseResolution
71 {
72 get => this._baseResolution;
73 set => this._baseResolution = Mathf.Max(value, 0.0f);
74 }
75 }
76}
Options for adjusting how point clouds are rendered using 3D Tiles.
float baseResolution
The average base resolution for the dataset in meters.
bool attenuation
Whether or not to perform point attenuation.
float maximumAttenuation
The maximum point attenuation in pixels.
float geometricErrorScale
The scale to be applied to the tile's geometric error before it is used to compute attenuation.