Get face normals rendering

This commit is contained in:
Eryn Wells 2018-11-20 17:13:31 -07:00
parent f28e6e08df
commit 296af144ce
5 changed files with 90 additions and 41 deletions

View file

@ -21,8 +21,7 @@
#include <simd/simd.h>
typedef NS_ENUM(NSInteger, BufferIndex)
{
typedef NS_ENUM(NSInteger, BufferIndex) {
BufferIndexMeshPositions = 0,
BufferIndexNormals = 1,
BufferIndexMeshGenerics = 2,
@ -30,6 +29,12 @@ typedef NS_ENUM(NSInteger, BufferIndex)
BufferIndexUniforms = 4,
};
typedef NS_ENUM(NSInteger, NormalBufferIndex) {
NormalBufferIndexPoints = 0,
NormalBufferIndexNormals = 1,
NormalBufferIndexUniforms = 2,
};
typedef NS_ENUM(NSInteger, VertexAttribute)
{
VertexAttributePosition = 0,
@ -48,7 +53,8 @@ typedef NS_ENUM(NSInteger, GeneratorBufferIndex) {
GeneratorBufferIndexIndexes = 2,
GeneratorBufferIndexNormals = 3,
GeneratorBufferIndexFaceNormals = 4,
GeneratorBufferIndexUniforms = 5,
GeneratorBufferIndexFaceMidpoints = 5,
GeneratorBufferIndexUniforms = 6,
};
typedef NS_ENUM(NSInteger, GeneratorTextureIndex) {