Cesium3DTileColorBlendMode

Cesium3DTileColorBlendMode()

定义从CesumAPI或声明性样式设置的每特征颜色如何与源颜色混合 原始特征,例如瓷砖中的glTF材质或逐点颜色。

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
      }
    }
  }
}

Members

staticconstantCesium.Cesium3DTileColorBlendMode.HIGHLIGHT : Number

将源颜色乘以要素颜色。

staticconstantCesium.Cesium3DTileColorBlendMode.MIX : Number

将源颜色和要素颜色混合在一起。

staticconstantCesium.Cesium3DTileColorBlendMode.REPLACE : Number

将源颜色替换为要素颜色。