Jump to content

sky black in mobile


none-9999
 Share

Recommended Posts

 

luz_punto=new BABYLON.PointLight("Omni0", new BABYLON.Vector3(0, 3, 0), escena);
    luz_punto.diffuse = new BABYLON.Color3(1, 1, 1);
    luz_punto.specular = new BABYLON.Color3(0, 0, 0);
    luz_punto.intensity = 10.0;
    
    
    luz_spot = new BABYLON.HemisphericLight("Hemi0", new BABYLON.Vector3(0, 1, 0), escena);
    luz_spot.diffuse = new BABYLON.Color3(1,.5,1);
    luz_spot.specular = new BABYLON.Color3(1, 1, 1);
    luz_spot.intensity =100;
    
    //luz_punto.parent = camara;
    
	skyMaterial = new BABYLON.SkyMaterial("skyMaterial", escena);
    skyMaterial.backFaceCulling = false;
    skyMaterial.inclination = 0.5; // The solar inclination, related to the solar azimuth
    skyMaterial.azimuth = 0.50; // The solar azimuth in interval [0, 1]
    skyMaterial.luminance = 0.5;
    skyMaterial.turbidity = 50;

    skyMaterial.useSunPosition = true; // Do not set sun position from azimuth and inclination
    skyMaterial.sunPosition = new BABYLON.Vector3(0, 100, 0);

    skybox = BABYLON.Mesh.CreateBox("skyBox", 1000.0, escena);
    skybox.material = skyMaterial;

v 3.0

 

Screenshot_20170530-153806.png

Screenshot_20170530-153806.png

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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