# How to implement the pbr map debug mode

**URL:** <https://forum.babylonjs.com/t/how-to-implement-the-pbr-map-debug-mode/53585>\
**Category:** Questions\
**Tags:** material\
**Created:** [September 20, 2024, 7:10am UTC](https://forum.babylonjs.com/t/how-to-implement-the-pbr-map-debug-mode/53585 "2024-09-20T07:10:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeyKo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/joeyko/32/38115_2.png) [@JoeyKo](https://forum.babylonjs.com/u/JoeyKo)\
**Post date:** [September 20, 2024, 7:10am UTC](https://forum.babylonjs.com/t/how-to-implement-the-pbr-map-debug-mode/53585/1 "2024-09-20T07:10:01Z")

</div>

Hey, guys.

In the babylonjs inspector, we can check pbr map in debug mode.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/e/5e93e3779e4b8a812c8cef784219b22249190e3e.png)

As we found the source code has many debug mode values, Is there any ways to implement these debug mode values in the project?

> <https://github.com/BabylonJS/Babylon.js/blob/c7e709f6d3e9ce69f622bc23a166d0bc92636a1f/packages/dev/core/src/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.ts#L314>

---

<div class="post-metadata">

**Author:** ![Moriy](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/moriy/32/30563_2.png) [@Moriy](https://forum.babylonjs.com/u/Moriy)\
**Post date:** [September 20, 2024, 9:06am UTC](https://forum.babylonjs.com/t/how-to-implement-the-pbr-map-debug-mode/53585/2 "2024-09-20T09:06:43Z")

</div>

Hi~, if you want to make a PBR material to show with debug mode, you can set material.debugMode directly.  
Like this PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#UIITSU)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

if you want to show as Normals Mode, you can set debugMode with 2  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/f/5f19bcadc7958b449247baea3398dc88cfcf47ec.png)

---

<div class="post-metadata">

**Author:** ![JoeyKo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/joeyko/32/38115_2.png) [@JoeyKo](https://forum.babylonjs.com/u/JoeyKo)\
**Post date:** [September 20, 2024, 9:15am UTC](https://forum.babylonjs.com/t/how-to-implement-the-pbr-map-debug-mode/53585/3 "2024-09-20T09:15:27Z")

</div>

Wow, This helps me a lot, Thx for your reply! btw the chinese babylonjs group is great.
