Skip to content

Commit

Permalink
Fix incorrect vertex layout indices
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraq committed Mar 15, 2024
1 parent 2bcac59 commit a7e10b0
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down

0 comments on commit a7e10b0

Please sign in to comment.