Benjamin Guignabert 5 years ago
parent
commit
22e125be6e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Shaders/ShadersInclude/pbrDebug.fx

+ 3 - 0
src/Shaders/ShadersInclude/pbrDebug.fx

@@ -159,6 +159,9 @@ if (vClipSpacePosition.x / vClipSpacePosition.w >= vDebugMode.x) {
     #endif
 
     gl_FragColor.a = 1.0;
+    #ifdef PREPASS
+        gl_FragData[0] = gl_FragColor;
+    #endif
     return;
 }
 #endif