arm render: enable face culling

Looks pretty shitty otherwise
This commit is contained in:
Moritz Zwerger 2025-02-07 22:14:47 +01:00
parent 095b537578
commit f22935b5f1
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -1,6 +1,6 @@
/*
* Minosoft
* Copyright (C) 2020-2024 Moritz Zwerger
* Copyright (C) 2020-2025 Moritz Zwerger
*
* 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.
*
@ -90,7 +90,7 @@ class ArmRenderer(override val context: RenderContext) : Renderer, Drawable {
context.system.clear(IntegratedBufferTypes.DEPTH_BUFFER)
context.system.reset(faceCulling = false, depthTest = true, blending = true, depthMask = true)
context.system.reset(faceCulling = true, depthTest = true, blending = true, depthMask = true)
shader.use()
shader.skinParts = renderer.model?.skinParts ?: 0xFF