Jump to content

PBR demo


Hersir
 Share

Recommended Posts

  • 1 month later...

I am still seeing this issue.

I am using Babylon 3.0.

The view on my iPhone 6s - iOS v10.3.3:

babylonjs-ios-safari.thumb.PNG.130e20a917bc616f0f73b7c6efe828a5.PNG

 

The view on my laptop - Safari v10.1.1, OSX v10.12.5:

 

babylonjs-osx-safari.thumb.png.0678924d0a82f5a6d602fda1b15205a5.png

 

My code:

var skyboxTexture = BABYLON.CubeTexture.CreateFromPrefilteredData("textures/skybox/dds/environment.dds", scene);
scene.createDefaultSkybox(skyboxTexture);

var treeMat = new BABYLON.PBRMetallicRoughnessMaterial("treeMat", scene);
treeMat.metallic = 0.5;
treeMat.roughness = 0.5;
treeMat.environmentTexture = skyboxTexture;

BABYLON.SceneLoader.ImportMesh("", "meshes/new/", "Tree.gltf", scene, function(meshes) {
    var mesh = meshes[0];
    mesh.material = treeMat;
});


Any thoughts?

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