In fact, I found a way to implement it after reading the source code of scene.js:
app.scene._skyboxCubeMap = null;
app.scene._resetSkyboxModel();
This is using the internal api to remove the skybox, but keep its lights.
I want to know if there any official way to implement it?
One more question, can I set the skybox without loading the textures ? What I need is the lights, not the cube map…
will
#2
Yes. Simply don’t set a cubemap as a sky box and, instead, set the cubemap on the ‘Cube Map’ slot of all your materials (in the Environment section):

You can also do this in script with the cubeMap
property:
material.cubeMap = myCubeMap;
material.update();
1 Like
How can I implement this by the engine ?
app.scene.setSkybox(material)
Maybe something like this ?
will
#4
Like I said, just don’t set a skybox and iterate over all your materials and do:
material.cubeMap = myCubeMap;
material.update();
1 Like