GPU: Ensure Absolute Ratio During SDF-Widget Drawing #107327

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:gpu-widget-shader-deriviates into main 2023-04-25 12:08:48 +02:00

1 Commits

Author SHA1 Message Date
Jeroen Bakker 453f815d11 GPU: Ensure Absolute Ratio During SDF-Widget Drawing
In the GPU_SHADER_2D_WIDGET_BASE the deriviates were assumed to be
positive. This is not always the case. In Vulkan this leads to
incorrect rendering of the widgets due to incorrect SDF values.

This change will ensure that the shader make the ratio variable
absolute.
2023-04-25 12:03:38 +02:00