diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-09 20:20:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-09 21:06:27 +0300 |
commit | bfa1c077cb46af6450e014cd515ac6c51ee6c12a (patch) | |
tree | d30c8eafb3e5a07f605ce984e71c71a38b07dcf9 /source/blender/draw/engines/eevee_next/shaders/eevee_geom_curves_vert.glsl | |
parent | f4827d08bc9be71e7eb5b44a2de73044e5a45174 (diff) |
Fix T97983 EEVEE: Tangent Normal of Curves info behaves differently in Eevee
Curve tangent was correctly mistaken with curve normal.
This patch fixes the name of the output in the glsl function and make curve
attributes more explicit (with `curve_` prefix).
This also improve the normal computation by making it per pixel to match
cycles.
Also ports the changes to eevee-next.
Diffstat (limited to 'source/blender/draw/engines/eevee_next/shaders/eevee_geom_curves_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee_next/shaders/eevee_geom_curves_vert.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_geom_curves_vert.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_geom_curves_vert.glsl index 11f93ad0d14..708bd153e84 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_geom_curves_vert.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_geom_curves_vert.glsl @@ -18,7 +18,7 @@ void main() ViewMatrixInverse[3].xyz, ViewMatrixInverse[2].xyz, interp.P, - T, + interp.curves_tangent, interp.curves_binormal, interp.curves_time, interp.curves_thickness, |