WebGL PlayCanvas Pipeline Tool

PlayCanvas StandardMaterial PBR Channel & GlossInvert Mapper

Wire PBR textures into PlayCanvas StandardMaterial accurately on the first try: assign R/G/B ORM channels, enable glossInvert for Roughness workflows, check OpenGL (+Y) normal compatibility, and copy clean PlayCanvas JavaScript.

100% Local Browser Engine · 0 Bytes Uploaded
Instant Deterministic Output

Single ORM Texture → R: AO, G: Roughness (glossInvert=true), B: Metalness

// PlayCanvas StandardMaterial PBR channel setup
const mat = new pc.StandardMaterial();
mat.useMetalness = true;
mat.diffuseMap = assets.WeatheredBrick_albedo.resource;
mat.normalMap = assets.WeatheredBrick_normal.resource;
mat.bumpiness = 1.0;
// OpenGL (+Y) normal map matches PlayCanvas WebGL tangent basis
mat.aoMap = assets.WeatheredBrick_orm.resource;
mat.aoMapChannel = "r";
mat.glossMap = assets.WeatheredBrick_orm.resource;
mat.glossMapChannel = "g";
mat.glossInvert = true; // Treat Green as Roughness
mat.metalnessMap = assets.WeatheredBrick_orm.resource;
mat.metalnessMapChannel = "b";
mat.update();

PlayCanvas StandardMaterial packed ORM channel settings

PlayCanvas SlotChannel PropertyKey Flag
aoMapaoMapChannel = 'r'Multiplies ambient/IBL lighting
glossMapglossMapChannel = 'g'Set glossInvert = true for Roughness
metalnessMapmetalnessMapChannel = 'b'Requires useMetalness = true
normalMapRGB Tangent SpaceOpenGL (+Y) convention

Using glossInvert to load standard Roughness maps in PlayCanvas

PlayCanvas historically named its microsurface slot glossMap (Glossiness). Setting mat.glossInvert = true tells the engine to interpret your green ORM channel or standalone grayscale map directly as PBR Roughness without manually inverting pixels.

Cutting WebGL download size with single-file ORM channel packing

Sharing one ORM image across aoMap, glossMap, and metalnessMap reduces HTTP requests and GPU texture binds—essential for fast-loading browser 3D configurators and mobile WebGL games.

Frequently asked questions

Does PlayCanvas expect OpenGL (+Y) or DirectX (-Y) normal maps?

PlayCanvas expects OpenGL (+Y) tangent-space normal maps. Flip the green channel first if your map came from Unreal Engine or Substance DirectX.

What happens if I forget mat.update() after assigning maps in script?

PlayCanvas caches compiled shader variants; calling mat.update() recompiles the material so your newly assigned PBR channels take effect.

Should glossInvert be true or false for glTF ORM textures?

Set glossInvert = true because glTF ORM stores Roughness in Green, not Glossiness.

Can I generate matching PlayCanvas PBR maps from a photo?

Yes—open our 4-Map PBR Texture Generator to build Albedo, OpenGL Normal, AO, and Roughness locally.

More free local PBR & normal map tools