Hardware Scaling Shifts UI

Hello,
I´m i want to have a HTML Button in my scene with varius Level of Detail. For tha I want to use Hardware Scaling. But the Position of my Button shifts, when I Change the Hardware Scaling. Is there a way to disable this?

Here is my Playground: https://playground.babylonjs.com/#YU7J32#41
I have set the Hardware Scaling to 1.2 in line 20.

Thank you for your answers

Hey there. :slight_smile: It looks like multiplying the render dimensions by engine.getHardwareScalingLevel() will fix the issue.

3 Likes