Skybox background


#1

I’m trying to add a skybox background to this but I can’t figure out what is missing in my code:
http://threejs-logo-demo.s3-website-us-west-1.amazonaws.com/

source:

Any ideas would be much appreciated!


#2

Looks like you’re creating the skybox in a very complex way. You could just simply do

this.scene = new THREE.Scene();
const textureCube = textureloader.load([
    ....
]);
this.scene.background = textureCube;

Three.js will handle all the mesh and material creation for you.


#3

thank you! I was copying/pasting code from one of the examples. Grabbed way more than I needed to. :slight_smile: