Make sure that global variables are initialized lazily in scene3d.