bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.46k stars 3.6k forks source link

Ui Anti-aliasing radius setting #16389

Open ickshonpe opened 2 weeks ago

ickshonpe commented 2 weeks ago

What problem does this solve or what need does it fill?

The UI AA radius should be be configurable I think to allow for fine-tuning

What solution would you like?

My naive idea was to give the On variant of UiAntiAlias a radius: f32 field, then extract the radius, bitcast the float to an int, put it into a ShaderDefVal and then bitcast it back again to a float in the shader. This might be a terrible thing to do though.