From a147a1656b5192fd9821c5af1177acaa67f8d1ef Mon Sep 17 00:00:00 2001 From: Bernard Kwok Date: Tue, 13 Feb 2024 11:53:00 -0500 Subject: [PATCH] Align vector spaces for npr nodes (#1710) - Gooch was using `` in "object" space and `` in "world" space. This causes incorrect rendering when the geometric transform is not identity. - The toon example was also doing this. --- libraries/nprlib/nprlib_ng.mtlx | 8 ++++++-- resources/Materials/TestSuite/nprlib/toon_shade.mtlx | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libraries/nprlib/nprlib_ng.mtlx b/libraries/nprlib/nprlib_ng.mtlx index 3870b852e9..f3db3f51ff 100644 --- a/libraries/nprlib/nprlib_ng.mtlx +++ b/libraries/nprlib/nprlib_ng.mtlx @@ -48,8 +48,12 @@ Node: --> - - + + + + + + diff --git a/resources/Materials/TestSuite/nprlib/toon_shade.mtlx b/resources/Materials/TestSuite/nprlib/toon_shade.mtlx index dae24c4706..1c93cad62d 100644 --- a/resources/Materials/TestSuite/nprlib/toon_shade.mtlx +++ b/resources/Materials/TestSuite/nprlib/toon_shade.mtlx @@ -27,7 +27,9 @@ - + + + @@ -47,7 +49,9 @@ - + + +