Classes
Members
-
module:ol/renderer/webgl/Layer.WebGLWorkerMessageType{string}
-
Type Definitions
-
BufferPositions{Object}
-
An object holding positions both in an index and a vertex buffer.
-
Options{Object}
-
Properties:
Name Type Argument Default Description className
string <optional>
'ol-layer' A CSS class name to set to the canvas element.
uniforms
Object.<string, module:ol/webgl/Helper~UniformValue> <optional>
Uniform definitions for the post process steps
postProcesses
Array.<module:ol/renderer/webgl/Layer~PostProcessesOptions> <optional>
Post-processes definitions
-
PostProcessesOptions{Object}
-
Properties:
Name Type Argument Description scaleRatio
number <optional>
Scale ratio; if < 1, the post process will render to a texture smaller than the main canvas that will then be sampled up (useful for saving resource on blur steps).
vertexShader
string <optional>
Vertex shader source
fragmentShader
string <optional>
Fragment shader source
uniforms
Object.<string, module:ol/webgl/Helper~UniformValue> <optional>
Uniform definitions for the post process step
-
WebGLWorkerGenerateBuffersMessage{Object}
-
This message will trigger the generation of a vertex and an index buffer based on the given render instructions. When the buffers are generated, the worked will send a message of the same type to the main thread, with the generated buffers in it. Note that any addition properties present in the message will be sent back to the main thread.
Properties: