Imported from https://github.com/iset/iset3d
