Jump to content



Recommended Posts

skybox does not work




[.WebGLRenderingContext-071415C8]GL ERROR :GL_OUT_OF_MEMORY : glCopyTexImage2D: three/:1 [.WebGLRenderingContext-071415C8]GL ERROR :GL_INVALID_OPERATION : glGenerateMipmap: Can not generate mipsthree/:1 [.WebGLRenderingContext-071415C8]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.three/:1 [.WebGLRenderingContext-071415C8]RENDER WARNING: there is no texture bound to the unit 1
var skybox = BABYLON.Mesh.CreateBox("skyBox", 1000.0, scene);var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);skyboxMaterial.backFaceCulling = false;skyboxMaterial.reflectionTexture = new BABYLON.CubeTexture("assets/sky/TropicalSunnyDay", scene);skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);skybox.material = skyboxMaterial;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...