Hi @iso74,
I think a good working example is the Playcanvas glTF viewer, on how to load a skybox in code: