MaterialEffect

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.AimedCircleMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.BloomHaloMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.DynamicLineMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.EffectMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.FireSpeedMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.FlameRadiationMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.GlobeWaterMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.GlowCircleMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.NeonLightMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.NoiseSpeedMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.WarpSpeedMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object

MaterialEffect

new MaterialEffect(options, options) → {Object}

特效材质包

Examples
1. Entity 使用材质
let material = new Cesium.WaveShieldMaterialProperty({type :  Cesium.Material.GlowPyramidEffect }) // 默认参数
viewer.entities.add({
   position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100),
   plane: {
          plane: new Cesium.CallbackProperty(function () {
                  return new Cesium.Plane(Cesium.Cartesian3.UNIT_Y, 0)
          }, false),
          dimensions:  new Cesium.Cartesian2(1000, 50),
          material: material
       }
})
2. Primitive 使用材质
const instance = new Cesium.GeometryInstance({
  geometry : new Cesium.PlaneGeometry({
         vertexFormat : Cesium.VertexFormat.POSITION_ONLY
     });
});
viewer.scene.primitives.add(new Cesium.Primitive({
     geometryInstances : instance,
     appearance : new Cesium.MaterialAppearance({
         material : Cesium.Material.fromType(Cesium.Material.GlowPyramidEffect)
     }),
     modelMatrix:Cesium.Matrix4.multiply(
             Cesium.Transforms.eastNorthUpToFixedFrame(
             Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 100)),
             Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1, 50)),
             new Cesium.Matrix4());
         }));
Parameters:
Name Type Description
options *
options *

具有以下属性:

Properties
Name Type Attributes Default Description
type String <optional>
Cesium.Material.GlowPyramidEffect

效果类型

color Color <optional>
new Cesium.Color(1.0, 1.0, 0.0, 1.0)

颜色

glow Number <optional>
1.0

发光亮度

speed Number <optional>
1.0

运动速率

Returns:

材质效果实例

Type
Object