Use a skybox texture to render object without display it

Hi,

I am using this code to use a rendering texture

scene.environmentTexture = CubeTexture.CreateFromPrefilteredData('/textures/_/environment.dds', scene);

const skybox = scene.createDefaultSkybox(scene.environmentTexture) as Mesh;

But I would like to display a blue background (not show the background texture itself)

Not sure that I completely understand your question.
Here is my answer - https://playground.babylonjs.com/#8C3KG0#1
No skybox at all, .env texture and blue background.

1 Like

Hello just checking in, was your question answered? @Stephane_Ancelot