i have a PBRMaterial which have one Texture with (Metallic Roughness).
So Channel “B” has the texture for Metallic and Channel “G” for Roughness.
How can i show only the Metallic Texture in 3D Render with API?
If i use Screne Explorer i can Click on Metallic Channel and it show Correct Texture. But how can i do this in code?
The simplest is to place the texture in the albedoTexture set the material as unlit = true and use albedoColor = new BABYLON.Color3(0,0,1) to display B only and accordingly for G