mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 08:58:02 -04:00
fix GuiMesh order
This commit is contained in:
parent
0d5d62ece1
commit
6d25ed7ecb
@ -30,6 +30,8 @@ class GUIMesh(
|
||||
data: FragmentedArrayFloatList,
|
||||
) : Mesh(context, GUIMeshStruct, initialCacheSize = 40000, clearOnLoad = false, data = data), GUIVertexConsumer {
|
||||
private val whiteTexture = context.textures.whiteTexture
|
||||
override val order = context.system.quadOrder
|
||||
|
||||
|
||||
override fun addVertex(x: Float, y: Float, texture: ShaderTexture?, u: Float, v: Float, tint: RGBColor, options: GUIVertexOptions?) {
|
||||
addVertex(data, halfSize, x, y, texture ?: whiteTexture.texture, u, v, tint, options)
|
||||
|
Loading…
x
Reference in New Issue
Block a user