Enables R developers and extension packages to write custom GLSL vertex and
fragment shaders driven by GLMP binary coordinate/attribute buffers.
Arguments
- map
A
glmapwidget orglmap_proxy.- data
Optional
sf,sfc, ordata.framepacked into aGLMPbinary buffer for the shader.- vertex_shader
Custom GLSL vertex shader source string.
- fragment_shader
Custom GLSL fragment shader source string.
- uniforms
Named list of uniform values passed to the shader program.
- draw_mode
WebGL draw mode:
"POINTS","LINES","LINE_STRIP", or"TRIANGLES".- id
Layer ID.
- group
Layer group name.