kvark / vange-rs

Rusty Vangers clone
https://vange.rs
Apache License 2.0
420 stars 21 forks source link

Добавить поддержку браузеров/видеокарт с текстурами меньше 16000 #200

Closed DileSoft closed 1 year ago

DileSoft commented 2 years ago

Например хранить данные не в одной большой текстуре, а в нескольких.

kvark commented 2 years ago

One interesting choice here is mentioned as the last point of #199 : turn the texture sideways and pack 2 texels into one. This would mean we can support 16K size naturally in WebGPU baseline, and it wouldn't require any texture coordinate transformation for texture arrays. However, once we go this path, we wouldn't be able to do linear interpolation between heights - and that's something I'd like to try out.