Give the grid coordinate vertex attribute a nice name

This commit is contained in:
Eryn Wells 2018-11-03 16:35:46 -04:00
parent d4d4a0a7ba
commit 753e8eb311

View file

@ -62,6 +62,7 @@ class Terrain: NSObject {
}
attributes[VertexAttribute.position.rawValue].name = MDLVertexAttributePosition
attributes[VertexAttribute.texcoord.rawValue].name = MDLVertexAttributeTextureCoordinate
attributes[VertexAttribute.gridCoord.rawValue].name = "Grid Coordinate"
plane.vertexDescriptor = mdlVertexDescriptor