new WebGLPostProcessingPass(options)
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
Methods
-
apply(frameState, nextPass)
webgl/PostProcessingPass.js, line 218 -
Render to the next postprocessing pass (or to the canvas if final pass).
Name Type Description frameState
module:ol/PluggableMap~FrameState current frame state
nextPass
module:ol/webgl/PostProcessingPass~WebGLPostProcessingPass Next pass, optional
frameState.pixelRatio
number The pixel ratio of the frame.
frameState.time
number The time when rendering of the frame was requested.
frameState.viewState
module:ol/View~State The state of the current view.
frameState.animate
boolean frameState.coordinateToPixelTransform
module:ol/transform~Transform frameState.extent
null | module:ol/extent~Extent frameState.declutterItems
Array.<module:ol/PluggableMap~DeclutterItems> frameState.index
number frameState.layerStatesArray
Array.<module:ol/layer/Layer~State> frameState.layerIndex
number frameState.pixelToCoordinateTransform
module:ol/transform~Transform frameState.postRenderFunctions
Array.<module:ol/PluggableMap~PostRenderFunction> frameState.size
module:ol/size~Size frameState.tileQueue
module:ol/TileQueue~TileQueue frameState.usedTiles
Object.<string, Object.<string, boolean>> frameState.viewHints
Array.<number> frameState.wantedTiles
Object.<string, Object.<string, boolean>> -
getFrameBuffer(){WebGLFramebuffer}
webgl/PostProcessingPass.js, line 250 -
Returns:
Frame buffer
-
getGL(){WebGLRenderingContext}
webgl/PostProcessingPass.js, line 166 -
Get the WebGL rendering context
Returns:
The rendering context.
-
init(frameState)
webgl/PostProcessingPass.js, line 177 -
Initialize the render target texture of the post process, make sure it is at the right size and bind it as a render target for the next draw calls. The last step to be initialized will be the one where the primitives are rendered.
Name Type Description frameState
current frame state
Name Type Description pixelRatio
number The pixel ratio of the frame.
time
number The time when rendering of the frame was requested.
viewState
module:ol/View~State The state of the current view.
animate
boolean coordinateToPixelTransform
module:ol/transform~Transform extent
null | module:ol/extent~Extent declutterItems
Array.<module:ol/PluggableMap~DeclutterItems> index
number layerStatesArray
Array.<module:ol/layer/Layer~State> layerIndex
number pixelToCoordinateTransform
module:ol/transform~Transform postRenderFunctions
Array.<module:ol/PluggableMap~PostRenderFunction> size
module:ol/size~Size tileQueue
module:ol/TileQueue~TileQueue usedTiles
Object.<string, Object.<string, boolean>> viewHints
Array.<number> wantedTiles
Object.<string, Object.<string, boolean>>