Fix a critical bug in bsdf local-to-world code