Methods
static Cesium.PostProcessStageLibrary.createBlackAndWhiteStage () → PostProcessStage
       该阶段具有一个统一的值,即
       
        gradations
       
       ,用于缩放每个像素的亮度。
      
Returns:
static Cesium.PostProcessStageLibrary.createBlurStage () → PostProcessStageComposite
       此阶段具有以下制服:
       
        delta
       
       ,
       
        sigma
       
       和
       
        stepSize
       
       。
      
       
        delta
       
       和
       
        sigma
       
       用于计算高斯滤波器的权重。等式是
       
        exp((-0.5 * delta * delta)/(sigma * sigma))
       
       。
       
        delta
       
       的默认值为
       
        1.0
       
       。
       
        sigma
       
       的默认值为
       
        2.0
       
       。
       
        stepSize
       
       是到下一个纹理像素的距离。默认值为
       
        1.0
       
       。
      
Returns:
static Cesium.PostProcessStageLibrary.createBrightnessStage () → PostProcessStage
       此阶段具有一个统一的值
       
        亮度
       
       ,该值可缩放每个像素的饱和度。
      
Returns:
static Cesium.PostProcessStageLibrary.createDepthOfFieldStage () → PostProcessStageComposite
景深模拟相机对焦。场景中聚焦的对象会清晰,而焦点不清晰的物体会模糊。
       此阶段具有以下制服:
       
        focalDistance
       
       ,
       
        delta
       
       ,
       
        sigma
       
       和
       
        stepSize
       
       。
      
       
        focalDistance
       
       是距离摄像机的距离(以米为单位),用于设置摄像机焦点。
      
       
        delta
       
       ,
       
        sigma
       
       和
       
        stepSize
       
       与
       
        PostProcessStageLibrary#createBlurStage
       
       具有相同的属性。模糊将应用于不清晰的区域。
      
Returns:
static Cesium.PostProcessStageLibrary.createEdgeDetectionStage () → PostProcessStageComposite
当颜色在边缘上时,将颜色写入设置为1.0的输出纹理中。
       此阶段具有以下制服:
       
        color
       
       和
       
        length
       
      
- 
        color是突出显示的边缘的颜色。默认值为Color#BLACK。
- 
        length是边缘的长度,以像素为单位。默认值为0.5。
2D不支持此阶段。
Returns:
Example:
// multiple silhouette effects
var yellowEdge = Cesium.PostProcessLibrary.createEdgeDetectionStage();
yellowEdge.uniforms.color = Cesium.Color.YELLOW;
yellowEdge.selected = [feature0];
var greenEdge = Cesium.PostProcessLibrary.createEdgeDetectionStage();
greenEdge.uniforms.color = Cesium.Color.LIME;
greenEdge.selected = [feature1];
// draw edges around feature0 and feature1
postProcessStages.add(Cesium.PostProcessLibrary.createSilhouetteEffect([yellowEdge, greenEdge]);static Cesium.PostProcessStageLibrary.createLensFlareStage () → PostProcessStage
       此阶段具有以下制服:
       
        dirtTexture
       
       ,
       
        starTexture
       
       ,
       
        强度
       
       ,
       
        distortion
       
       ,
       
        ghostDispersal
       
       ,
       
        haloWidth
       
       和
       
        earthRadius
       
       。
      
- 
        dirtTexture是一种采样的纹理,用于模拟镜头上的污垢。
- 
        starTexture是为耀斑的星形图案采样的纹理。
- 
        强度是一个标量乘以镜头眩光的结果。默认值为2.0。
- 
        distortion是影响色度效应失真的标量值。默认值为10.0。
- 
        ghostDispersal是一个标量,指示光晕效果距纹理中心的距离。默认值为0.4。
- 
        haloWidth是一个标量,表示从幻影散布起的光晕宽度。默认值为0.4。
- 
        earthRadius是地球的最大半径。默认值为Ellipsoid.WGS84.maximumRadius。
Returns:
static Cesium.PostProcessStageLibrary.createNightVisionStage () → PostProcessStage
Returns:
static Cesium.PostProcessStageLibrary.createSilhouetteStage () → PostProcessStageComposite
轮廓效果将来自边缘检测通道的颜色与输入的颜色纹理进行合成。
       当
       
        edgeDetectionStages
       
       是
       
        undefined
       
       时,此阶段具有以下制服:
       
        color
       
       和
       
        length
       
      
       
        color
       
       是突出显示的边缘的颜色。默认值为
       
        Color#BLACK
       
       。
       
        length
       
       是边缘的长度,以像素为单位。默认值为
       
        0.5
       
       。
      
Returns:
此阶段需要WEBGL_depth_texture扩展。
| Name | Type | Description | 
|---|---|---|
| 
          scene
          | Scene | 现场。 | 
Returns:
See:
此阶段需要WEBGL_depth_texture扩展。
| Name | Type | Description | 
|---|---|---|
| 
          scene
          | Scene | 现场。 | 
Returns:
See:
此阶段需要WEBGL_depth_texture扩展。
| Name | Type | Description | 
|---|---|---|
| 
          scene
          | Scene | 现场。 | 
Returns:
See:
此阶段需要WEBGL_depth_texture扩展。
| Name | Type | Description | 
|---|---|---|
| 
          scene
          | Scene | 现场。 | 
