diff options
author | Hans Goudey <h.goudey@me.com> | 2022-03-30 18:37:39 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-03-30 18:37:39 +0300 |
commit | 60a6fbf5b59911cba54d30bd1105626fcc577875 (patch) | |
tree | aa7dbda40335765f75ebc1112a0ad8176dd3eaef /source/blender/draw/engines/overlay/shaders/antialiasing_frag.glsl | |
parent | ba28c10199b363df469cf70f2e9436be90deb258 (diff) |
Curves: Port resample node to the new data-block
This commit re-implements the resample curve node to use the new curves
type instead of CurveEval. The largest changes come from the need to
keep track of offsets into the point attribute arrays, and the fact
that the attributes for all curves are stored in a flat array.
Another difference is that a bit more of the logic is handled by
building of the field network inputs. The idea is to let the field
evaluator handle potential optimizations while making the rest of the
code simpler.
When resampling 1 million small poly curves,the node is about 6
times faster compared to 3.1 on my hardware (500ms to 80ms).
This also adds support for Catmull Rom curve inputs.
Differential Revision: https://developer.blender.org/D14435
Diffstat (limited to 'source/blender/draw/engines/overlay/shaders/antialiasing_frag.glsl')
0 files changed, 0 insertions, 0 deletions