From: Terri00 Date: Thu, 14 Mar 2019 22:42:58 +0000 (+0000) Subject: negative brushes X-Git-Url: https://skaterift.com/git/?a=commitdiff_plain;h=da2837a119d690ff685f724b760c92d9847910b6;p=tar-legacy.git negative brushes --- diff --git a/MCDV/main.cpp b/MCDV/main.cpp index 4fc9aac..ffe4afb 100644 --- a/MCDV/main.cpp +++ b/MCDV/main.cpp @@ -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(); diff --git a/MCDV/playable-space.png b/MCDV/playable-space.png index 90dc5f8..e8b832d 100644 Binary files a/MCDV/playable-space.png and b/MCDV/playable-space.png differ diff --git a/MCDV/sample_stuff/de_tavr_test.vmx b/MCDV/sample_stuff/de_tavr_test.vmx index ae498c1..8296fb1 100644 --- a/MCDV/sample_stuff/de_tavr_test.vmx +++ b/MCDV/sample_stuff/de_tavr_test.vmx @@ -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" } diff --git a/MCDV/test.png b/MCDV/test.png index bc9540e..8d1c042 100644 Binary files a/MCDV/test.png and b/MCDV/test.png differ