* 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>
13 lines
443 B
Python
Executable File
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.*"
|