Skip to content

Commit 461aa00

Browse files
committed
gui renderer: disable face culling
This will never work.
1 parent ff310bb commit 461aa00

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ tasks.register("upload") {
678678
}
679679

680680
tasks.register<Exec>("nsight") {
681+
dependsOn("processResources", "compileKotlin", "compileJava")
681682
// thanks: https://hub.jmonkeyengine.org/t/gradle-nvidia-nsight-graphics/48130
682683
group = "application"
683684
val run = tasks.named<JavaExec>("run").get()

src/main/java/de/bixilon/minosoft/gui/rendering/gui/GUIRenderer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Minosoft
3-
* Copyright (C) 2020-2025 Moritz Zwerger
3+
* Copyright (C) 2020-2026 Moritz Zwerger
44
*
55
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
66
*
@@ -96,6 +96,7 @@ class GUIRenderer(
9696
destinationRGB = BlendingFunctions.ONE_MINUS_SOURCE_ALPHA,
9797
sourceAlpha = BlendingFunctions.ONE,
9898
destinationAlpha = BlendingFunctions.ONE_MINUS_SOURCE_ALPHA,
99+
faceCulling = false,
99100
)
100101
shader.use()
101102
}

0 commit comments

Comments
 (0)