ported it in jeromeetienne/threex.basiclighting