Files
sfriedmapixar 4738a0fdf5 fix: calculatenormal needs fliphandedness (#1783)
* Have OSL indicate when it needs fliphandedness in shader globals.

* Add testsuite test to check that calculatenormal() triggers a globals_needed flipHandedness value.

---------

Signed-off-by: Stephen Friedman <sfriedma@pixar.com>
2024-03-08 15:39:50 -08:00

13 lines
443 B
Python
Executable File

#!/usr/bin/env python
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
command += testshade("-g 2 2 -debug printbackfacing")
command += testshade("-g 2 2 -debug printcalculatenormal")
# debug output is very verbose, use regexp to filter down to
# only the line we're interested in testing
filter_re = "Need.*globals.*"