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
Inside Viewer or CesiumWidget components.
Properties
Cesium properties
| Property | Type | Description |
|---|---|---|
| enabled | boolean | |
| selected | any[] |
Cesium read-only properties
| Property | Type | Description |
|---|---|---|
| fragmentShader | string | |
| name | string | |
| uniforms | any | |
| textureScale | number | |
| forcePowerOfTwo | boolean | |
| sampleMode | PostProcessStageSampleMode | |
| pixelFormat | PixelFormat | |
| pixelDatatype | PixelDatatype | |
| clearColor | Color | |
| scissorRectangle | BoundingRectangle |
Cesium events
N/A
Other properties
N/A