From a7e10b017cbe9f443f345454f0560343ecf75b32 Mon Sep 17 00:00:00 2001 From: Emanuel Rabina Date: Sat, 16 Mar 2024 10:56:17 +1300 Subject: [PATCH] Fix incorrect vertex layout indices --- .../engine/graphics/VertexBufferLayoutPart.groovy | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/redhorizon-engine/source/nz/net/ultraq/redhorizon/engine/graphics/VertexBufferLayoutPart.groovy b/redhorizon-engine/source/nz/net/ultraq/redhorizon/engine/graphics/VertexBufferLayoutPart.groovy index 07cd5cf6..b1f4d142 100644 --- a/redhorizon-engine/source/nz/net/ultraq/redhorizon/engine/graphics/VertexBufferLayoutPart.groovy +++ b/redhorizon-engine/source/nz/net/ultraq/redhorizon/engine/graphics/VertexBufferLayoutPart.groovy @@ -1,12 +1,12 @@ -/* +/* * Copyright 2021, Emanuel Rabina (http://www.ultraq.net.nz/) - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -22,14 +22,14 @@ import groovy.transform.TupleConstructor /** * A description of the data comprising a section of a vertex buffer layout. - * + * * @author Emanuel Rabina */ @TupleConstructor enum VertexBufferLayoutPart { - COLOUR ('colour', 0, Colour.FLOATS), - POSITION ('position', 1, Vector2f.FLOATS), + POSITION ('position', 0, Vector2f.FLOATS), + COLOUR ('colour', 1, Colour.FLOATS), TEXTURE_UVS ('textureUVs', 2, Vector2f.FLOATS) final String name