Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. var skybox = BABYLON.Mesh.CreateBox("skyBox", 500.0, scene);
  2. skybox.renderingGroupId = 0;
  3. var skyboxMaterial = new BABYLON.StandardMaterial("skyBox", scene);
  4. skybox.material = skyboxMaterial;
  5. skybox.infiniteDistance = true;
  6. skyboxMaterial.backFaceCulling = false;
  7. skyboxMaterial.disableLighting = true;
  8. skyboxMaterial.diffuseColor = new BABYLON.Color3(0, 0, 0);
  9. skyboxMaterial.specularColor = new BABYLON.Color3(0, 0, 0);
  10. skyboxMaterial.reflectionTexture = new BABYLON.Texture("assets/race/background2.png", scene);
  11. skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.PROJECTION_MODE;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement