PostProcessStage
PostProcessStage can add a post processing stage to the scene.
Bult-in PostProcessStage components are available with additional Cesium properties:
| Component | Property | Type |
|---|---|---|
| BlackAndWhiteStage | gradations | number |
| delta | number | |
| sigma | number | |
| stepSize | number | |
| BrightnessStage | brightness | number |
| LensFlareStage | dirtTexture | any |
| starTexture | any | |
| intensity | number | |
| distortion | number | |
| ghostDispersal | number | |
| haloWidth | number | |
| earthRadius | number | |
| dirtTexture | number | |
| dirtTexture | number | |
| Fxaa | - | - |
Note: Fxaa component can not be used multi time, as it refers to the single post process stage of the scene.
They can be imported and used normally:
import { LensFlareStage } from "resium";
<Viewer> <LensFlareStage intensity={5} /></Viewer>- Cesium element: PostProcessStage
- Example: PostProcessStage
Availability
Section titled “Availability”Inside Viewer or CesiumWidget components.
Properties
Section titled “Properties”Cesium properties
Section titled “Cesium properties”| Property | Type | Description |
|---|---|---|
| enabled | boolean | |
| selected | any[] |
Cesium read-only properties
Section titled “Cesium read-only properties”| Property | Type | Description |
|---|---|---|
| fragmentShader | string | |
| name | string | undefined | |
| uniforms | any | |
| textureScale | number | undefined | |
| forcePowerOfTwo | boolean | undefined | |
| sampleMode | PostProcessStageSampleMode | undefined | |
| pixelFormat | PixelFormat | undefined | |
| pixelDatatype | PixelDatatype | undefined | |
| clearColor | Color | undefined | |
| scissorRectangle | BoundingRectangle | undefined |
Cesium events
Section titled “Cesium events”N/A
Other properties
Section titled “Other properties”N/A