Benjamin Guignabert 5 년 전
부모
커밋
22e125be6e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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