antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.
https://l7.antv.antgroup.com
MIT License
3.63k stars 633 forks source link

fix: raster with luminance in webgl1 #2490

Closed xiaoiver closed 4 months ago

xiaoiver commented 4 months ago

[English Template / 英文模板]

🤔 这个变动的性质是?

🔗 相关 Issue

💡 需求背景和解决方案

WebGL1 下需要使用 Format.F32_LUMINANCE

/**
 * WebGL1 allow the combination of gl.LUMINANCE & gl.FLOAT with OES_texture_float
 */
format: queryVerdorInfo() === 'WebGL1' ? gl.LUMINANCE : gl.RED,
type: gl.FLOAT,

但其实这种组合是不符合规范的: https://github.com/antvis/L7/pull/2128#issuecomment-1851922960

📝 更新日志

语言 更新描述
🇺🇸 英文
🇨🇳 中文

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项。⚠️