浏览代码

Allow easier reusing in PBR node material

Popov72 5 年之前
父节点
当前提交
adfe04c078
共有 1 个文件被更改,包括 4 次插入3 次删除
  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