negative brushes
authorTerri00 <thrustmediaproductions@gmail.com>
Thu, 14 Mar 2019 22:42:58 +0000 (22:42 +0000)
committerTerri00 <thrustmediaproductions@gmail.com>
Thu, 14 Mar 2019 22:42:58 +0000 (22:42 +0000)
MCDV/main.cpp
MCDV/playable-space.png
MCDV/sample_stuff/de_tavr_test.vmx
MCDV/test.png

index 4fc9aac60f3a3c0295920bdeafbca2ebb68bd796..ffe4afb4f3966a974bccb223a072bf32cdac4eba 100644 (file)
@@ -329,6 +329,20 @@ int app(int argc, const char** argv) {
                }
        }
 
+       // Re render subtractive brushes
+       shader_depth.setFloat("write_playable", 0.0f);
+       for (auto && s_solid : tavr_solids_negative) {
+               if (!s_solid->containsDisplacements)
+                       s_solid->mesh->Draw();
+               else {
+                       for (auto && f : s_solid->faces) {
+                               if (f.displacement != NULL) {
+                                       f.displacement->glMesh->Draw();
+                               }
+                       }
+               }
+       }
+
        // ======================================================== REVERSE ORDER ========================================================
 
        fb_comp_1.Bind();
index 90dc5f80532f2010c7b38bb9dcec7b369436f5a4..e8b832de342d1e11deeda4deb75550d536f81bf1 100644 (file)
Binary files a/MCDV/playable-space.png and b/MCDV/playable-space.png differ
index ae498c1ec7ffa9a3765849b5201e9e69e9c1f98e..8296fb1c0c0ce7453a31e2839b1adaacd17e6a87 100644 (file)
@@ -2,7 +2,7 @@ versioninfo
 {
        "editorversion" "400"
        "editorbuild" "8075"
-       "mapversion" "36"
+       "mapversion" "38"
        "formatversion" "100"
        "prefab" "0"
 }
@@ -32,7 +32,7 @@ viewsettings
 world
 {
        "id" "1"
-       "mapversion" "36"
+       "mapversion" "38"
        "classname" "worldspawn"
        "detailmaterial" "detail/detailsprites"
        "detailvbsp" "detail.vbsp"
@@ -1656,6 +1656,7 @@ world
                {
                        "color" "0 145 202"
                        "visgroupid" "8"
+                       "visgroupid" "9"
                        "visgroupshown" "1"
                        "visgroupautoshown" "1"
                }
index bc9540e33bcd9bb26dff077a85bd41316bee92d6..8d1c0423654fc4504ba309aa04e744b14c46c214 100644 (file)
Binary files a/MCDV/test.png and b/MCDV/test.png differ