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.
WebGL PlayCanvas Pipeline Tool
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.
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 Slot | Channel Property | Key Flag |
|---|---|---|
| aoMap | aoMapChannel = 'r' | Multiplies ambient/IBL lighting |
| glossMap | glossMapChannel = 'g' | Set glossInvert = true for Roughness |
| metalnessMap | metalnessMapChannel = 'b' | Requires useMetalness = true |
| normalMap | RGB Tangent Space | OpenGL (+Y) convention |
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.
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.
PlayCanvas expects OpenGL (+Y) tangent-space normal maps. Flip the green channel first if your map came from Unreal Engine or Substance DirectX.
PlayCanvas caches compiled shader variants; calling mat.update() recompiles the material so your newly assigned PBR channels take effect.
Set glossInvert = true because glTF ORM stores Roughness in Green, not Glossiness.
Yes—open our 4-Map PBR Texture Generator to build Albedo, OpenGL Normal, AO, and Roughness locally.
Optional Google Analytics
Accept loads Google Analytics 4 for traffic and conversion measurement. Reject keeps it off. Necessary first-party product events and the cookie-free pageview counter remain active. This choice never enables advertising.