Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-29 19:28:48 +0300
committerHans Goudey <h.goudey@me.com>2022-09-29 19:28:48 +0300
commitc007e84e9ec6b7283b871979a8fdb80f8c7819ed (patch)
tree94d1712fd50046301b3ad1289496082a4d5e1d2c /release/scripts/templates_py/custom_nodes.py
parent520d111eca55941dd0924998927ec1a994895f54 (diff)
Fix: Viewer node overlay alpha broken on NVidia GPUs
On NVidia GPUs, when the blue channel was between 0 and 0.1, the overlay's alpha would increase, making it invisible. With the `overlay_line_fb` frame buffer bound in `overlay_engine.cc` there are two outputs to write to: the color and the line output, which is used for making smooth antialiased lines. The overlay is in its current position in the order of overlays so that it draws on top of curve wire lines. Not writing to that second output is undefined behavior, so fix it by writing zeros. In the future, the overlay could be smoothed on curves using that second texture. Thanks to Clément for the explanation of the issue!
Diffstat (limited to 'release/scripts/templates_py/custom_nodes.py')
0 files changed, 0 insertions, 0 deletions