larsmaxfield / maplibre-gl-js

MapLibre GL JS - Interactive vector tile maps in WebGL2
https://maplibre.org/maplibre-gl-js/docs/
Other
0 stars 0 forks source link

[Feature] In elevation custom shader programs, allow custom variables (uniforms) #21

Open larsmaxfield opened 1 month ago

larsmaxfield commented 1 month ago

Allow users to inject their own custom variables (uniforms) in the custom shader programs of the elevation layer.

larsmaxfield commented 1 month ago

One route could be a single unbounded variable-length array in each shader which would all the custom variables specified by a user.

https://computergraphics.stackexchange.com/questions/5323/dynamic-array-in-glsl

https://www.khronos.org/opengl/wiki/Shader_Storage_Buffer_Object