Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var skybox = BABYLON.Mesh.CreateBox("skyBox", 500.0, scene);
- skybox.renderingGroupId = 0;
- var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
- skybox.material = skyboxMaterial;
- skybox.infiniteDistance = true;
- skyboxMaterial.backFaceCulling = false;
- skyboxMaterial.disableLighting = true;
- skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
- skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
- skyboxMaterial.reflectionTexture = new BABYLON.Texture("assets/race/background2.png", scene);
- skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.PROJECTION_MODE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement