Skip to main content

PostProcessStage

PostProcessStage can add a post processing stage to the scene.

Bult-in PostProcessStage components are available with additional Cesium properties:

ComponentPropertyType
BlackAndWhiteStagegradationsnumber
deltanumber
sigmanumber
stepSizenumber
BrightnessStagebrightnessnumber
LensFlareStagedirtTextureany
starTextureany
intensitynumber
distortionnumber
ghostDispersalnumber
haloWidthnumber
earthRadiusnumber
dirtTexturenumber
dirtTexturenumber
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>

Availability

Inside Viewer or CesiumWidget components.

Properties

Cesium properties

PropertyTypeDescription
enabledboolean
selectedany[]

Cesium read-only properties

PropertyTypeDescription
fragmentShaderstring
namestring
uniformsany
textureScalenumber
forcePowerOfTwoboolean
sampleModePostProcessStageSampleMode
pixelFormatPixelFormat
pixelDatatypePixelDatatype
clearColorColor
scissorRectangleBoundingRectangle

Cesium events

N/A

Other properties

N/A