Cesium3DTileColorBlendMode

Defines how per-feature colors set from the Cesium API or declarative styling blend with the source colors from the original feature, e.g. glTF material or per-point color in the tile.

When REPLACE or MIX are used and the source color is a glTF material, the technique must assign the _3DTILESDIFFUSE semantic to the diffuse color parameter. Otherwise only HIGHLIGHT is supported.

A feature whose color evaluates to white (1.0, 1.0, 1.0) is always rendered without color blending, regardless of the tileset's color blend mode.


"techniques": {
  "technique0": {
    "parameters": {
      "diffuse": {
        "semantic": "_3DTILESDIFFUSE",
        "type": 35666
      }
    }
  }
}
Properties:
Name Type Description
HIGHLIGHT Number Multiplies the source color by the feature color.
REPLACE Number Replaces the source color with the feature color.
MIX Number Blends the source color and feature color together.

Members

static constant Cesium.Cesium3DTileColorBlendMode.HIGHLIGHT : Number

Multiplies the source color by the feature color.

static constant Cesium.Cesium3DTileColorBlendMode.MIX : Number

Blends the source color and feature color together.
Default Value: 2

static constant Cesium.Cesium3DTileColorBlendMode.REPLACE : Number

Replaces the source color with the feature color.
Default Value: 1