Add grid coordinate argument encoding stuff and a texture to hold heights

This commit is contained in:
Eryn Wells 2018-11-03 16:25:19 -04:00
parent a5c86f9c31
commit dac8f24568
3 changed files with 28 additions and 7 deletions

View file

@ -23,15 +23,17 @@
typedef NS_ENUM(NSInteger, BufferIndex)
{
BufferIndexMeshPositions = 0,
BufferIndexMeshGenerics = 1,
BufferIndexUniforms = 2
BufferIndexMeshPositions = 0,
BufferIndexMeshGenerics = 1,
BufferIndexMeshGridCoords = 2,
BufferIndexUniforms = 3,
};
typedef NS_ENUM(NSInteger, VertexAttribute)
{
VertexAttributePosition = 0,
VertexAttributeTexcoord = 1,
VertexAttributeGridCoord = 2,
};
typedef NS_ENUM(NSInteger, TextureIndex)