Jump to content

[SOLVED]PBRMaterials and Textures


Raggar
 Share

Recommended Posts

Let's say I have a material with the following properties:

var ref = new BABYLON.CubeTexture("skybox", scene);	
var mat = new BABYLON.PBRMaterial("PBR", scene);
mat.albedoTexture = new BABYLON.Texture("a.png", scene);
mat.reflectionTexture = ref;
mat.microSurface = .4;			
//mat.diffuseTexture = new BABYLON.Texture("s.png", scene);

//mat.reflectivityColor = new BABYLON.Color3.FromHexString("#eeeeee");
//mat.albedoTexture.hasAlpha = true; 
//materialGloss.albedoColor = new BABYLON.Color3.FromHexString("#f00001");

Is it possible to have a texture on top of the reflecting surface? Preferably with an alpha channel.

What about multiple textures layered on top of each other, like a dirt map on top of a logo?

 

Link to comment
Share on other sites

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