Ver código fonte

Allow easier reusing in PBR node material

Popov72 5 anos atrás
pai
commit
adfe04c078
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4 3
      src/Shaders/ShadersInclude/pbrDebug.fx

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

@@ -1,7 +1,6 @@
 #if  DEBUGMODE > 0
-    if (vClipSpacePosition.x / vClipSpacePosition.w < vDebugMode.x) {
-        return;
-    }
+if (vClipSpacePosition.x / vClipSpacePosition.w >= vDebugMode.x) {
+
 // Geometry
     #if   DEBUGMODE == 1
         gl_FragColor.rgb = vPositionW.rgb;
@@ -160,4 +159,6 @@
     #endif
 
     gl_FragColor.a = 1.0;
+    return;
+}
 #endif