Jump to content

Material glossiness in BABYLON 4.0.0


Fred4walls
 Share

Recommended Posts

Hi,

I have updated BabylonJS version from 3.2.0 alpha8 to 4.0.0.rc1 and I seen rendering differences for some materials.

For materials with environmentTexture, materials are more glossy with 4.0.0 version.

I give you an code sample for my material :

var material = new BABYLON.PBRSpecularGlossinessMaterial("mat1", scene);
material.alpha = 1;
material.glossiness = 0.51;
material.diffuseColor = new BABYLON.Color3(0 0, 0);
material.emissiveColor = new BABYLON.Color3(0, 0, 0);
material.specularColor = new BABYLON.Color(0.93, 0.93, 0.57);
material.environmentTexture = environmentProbe.cubeTexture;

  

 I build environmentProb with this code

this.environmentProbe = new BABYLON.ReflectionProbe("EnvironmentProbe", 512, this.scene, true);
this.environmentProbe.position = new BABYLON.Vector3(0, 1.5, 0);
this.environmentProbe.refreshRate = 0;
this.environmentProbe.cubeTexture.sphericalPolynomial = new BABYLON.SphericalPolynomial();

I give you an exemple with a gold reindeer.

Do you have the same effects with 4.0.0 version ? Have you some ideas to fix it ?

Thanks.

 

Capture d’écran 2019-04-29 à 10.06.57.png

Link to comment
Share on other sites

  • 4 weeks later...

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