Page MenuHome

UI: Make the particle "halo" size consistent across different DPI monitors
Needs ReviewPublic

Authored by Leon Schittek (lone_noel) on Feb 12 2022, 10:53 PM.
Tags
  • Restricted Project
Subscribers
None
Tokens
"Pterodactyl" token, awarded by Gavriel5578."Love" token, awarded by MysteryPancake.
This revision needs review, but there are no reviewers specified.

Details

Summary

Make the size of the dot/sphere that represents particles in the
viewport consistent across screens with different DPI.


The shader was multiplying the particle's size (gl_PointSize) with
sizePixel which lead to particles being drawn bigger in relation to
the rest of the UI on screens with a higher DPI.

Instead the draw_size is now multiplied with U.ui_scale so the
particle's size still adapts together with the rest of the interface
when changing the global UI Scale.

Display / UI Scale1080p / 1.0retina / 1.01080p / 2.0retina / 2.0
patch
master

Diff Detail

Repository
rB Blender
Branch
ui-papercut-particle-halo-size (branched from master)
Build Status
Buildable 20522
Build 20522: arc lint + arc unit