translucencyByDistance
Gets or sets the StyleExpression object used to evaluate the style's translucencyByDistance
property. Alternatively a string or object defining a vec4 style can be used. The getter will return the internal Expression or ConditionsExpression, which may differ from the value provided to the setter.
The expression must return a Cartesian4
.
This expression is only applicable to point features in a Vector tile.
const style = new Cesium3DTileStyle();
// Override translucencyByDistance expression with a string
style.translucencyByDistance = 'vec4(1.5e2, 1.0, 1.5e7, 0.2)';
style.translucencyByDistance.evaluate(feature); // returns a Cartesian4
Content copied to clipboard