How to map PBRMaterial to PBRMetallicRoughness material?


The model I have uses PBR material. I added a node material to generate reflection and the reflection works but the new change overridden the properties of existing PBR material. The model PBRMaterial’s channels applies Metallic Roughness, Emissive, and Ambient texture.

I am able to apply Emissive texture together with baseColor via AddBlock connect to PBRMetallicRoughness’s baseColor input node. But I m not sure how to add the other textures.

So my question is - how can I map properties from PBRMaterial to the PBRMetallicRoughness to keep the feel of the original model?

here is the node material editor screenshot

The block is named PBRMetallicRoughness in the NME to emphasize it is using the metallic/roughness and not the specular / glosiness model but it is really mapping the PBRMaterial.


  • the AmbientTexture should be linked to the ambientColor input.
  • the EmissiveTexture should be a component added at the very end, between the output and the FragmentOutput.rgb input. Make sure to perform the sum lighting + emissive in linear space! The lighting output is in gamma space, so you will need to convert it to linear (lighting_linear=lighting_gamma^2.2). For the emissive texture block, just select “Convert to linear space”. To convert the result of the sum back to gamma space for display purpose, you can either apply a ^(1/2.2) to the result of the sum or select Convert to gamma space on the FragmentOutput block.
  • the channel corresponding to metallic in MetallicRoughnessTexture should be linked to the PBRMetallicRoughness.metallic input and the channel corresponding to roughness in MetallicRoughnessTexture should be linked to the PBRMetallicRoughness.roughness input
1 Like

@Evgeni_Popov Thanks for the reply. I implement the first two points as you described.

I want to make sure how I map MetallicRoughnessTexture.

Under the original PBRMaterial’s channel I found the combination of metallic and roughness texture slot. And a texture applied to it.
So what I took that texture replace PBRMetallicRoughness’s metallic and roughness node value with blue and green value of the texture respectively.
I did the mapping because I saw a tutorial on youtube ( (194) PBR Nodes in Node Materials Part 3 - YouTube) doing the same. So is that the right way to implement it?

thanks in advance.

In the video, Patrick created a texture for use in the NME only, not for the regular PBRMaterial, so he could put metallic/roughness wherever he wanted.

If on the contrary you want to recreate a node material that matches a default PBRMaterial, the metallic component is the red channel of the metallicRoughness texture and the roughness component is the alpha channel.

1 Like

Thanks @Evgeni_Popov