kylebarron / deck.gl-raster

deck.gl layers and WebGL modules for client-side satellite imagery analysis
https://kylebarron.dev/deck.gl-raster/
MIT License
85 stars 10 forks source link

Combine pansharpening into same layer #2

Closed kylebarron closed 4 years ago

kylebarron commented 4 years ago

You can pass a bool uniform which says whether or not to use texture_pan. You can pass an empty texture_pan in the case of no pansharpening. E.g. new Texture2d(null) or something like that.

https://github.com/visgl/deck.gl/blob/7b3b615edb86c7a6adf9230bdcb139a58e9933d3/modules/mesh-layers/src/simple-mesh-layer/simple-mesh-layer-fragment.glsl.js#L38