kvark / vange-rs

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

WebGL: colors applied only on part of level #168

Closed caiiiycuk closed 2 years ago

caiiiycuk commented 2 years ago

If you try latest build everything seems very good, but the colors only applied on part of level (reproduces on all levels)

image

Link to test: https://caiiiycuk.github.io/vangers-web/vange-rs/

kvark commented 2 years ago

Thank you for filing! I'd love to have a workflow for debugging WebGL. It's so much easier with WebGPU...

caiiiycuk commented 2 years ago

Yeah... will do workflow

kvark commented 2 years ago

Maybe we can have an input box with the terrain fragment shader? So I can tweak it and see how the rendering responds?

caiiiycuk commented 2 years ago

Sure, I can do this, should be simple.

caiiiycuk commented 2 years ago

Now you can change shaders without rebuilding project. Just download release zip, extract it somewhere and start webserver to server it.

Then you can change files in asstes/res folder and reload page (just ensure that you disable cache in browser).

kvark commented 2 years ago

Thanks to this, issue is fixed in 664e25bf4f377f2f52d1803c8ed37cabd5d67c91

caiiiycuk commented 2 years ago

So cool! I will prepare PR to merge.