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.
Properties:
Name Type Description vertexPositionnumber Position in the vertex buffer
indexPositionnumber Position in the index buffer
-
Options{Object}
-
Properties:
Name Type Argument Description uniformsObject.<string, module:ol/webgl/Helper~UniformValue> <optional>
Uniform definitions for the post process steps
postProcessesArray.<module:ol/renderer/webgl/Layer~PostProcessesOptions> <optional>
Post-processes definitions
-
PostProcessesOptions{Object}
-
Properties:
Name Type Argument Description scaleRationumber <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).
vertexShaderstring <optional>
Vertex shader source
fragmentShaderstring <optional>
Fragment shader source
uniformsObject.<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:
Name Type Argument Description typemodule:ol/renderer/webgl/Layer~WebGLWorkerMessageType Message type
renderInstructionsArrayBuffer Render instructions raw binary buffer.
vertexBufferArrayBuffer <optional>
Vertices array raw binary buffer (sent by the worker).
indexBufferArrayBuffer <optional>
Indices array raw binary buffer (sent by the worker).
customAttributesCountnumber <optional>
Amount of custom attributes count in the render instructions.
OpenLayers