Procházet zdrojové kódy

Allow easier reusing in PBR node material

Popov72 před 5 roky
rodič
revize
adfe04c078
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  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