Rewrite lighting shader to use Light and Material objects

This commit is contained in:
Eryn Wells 2018-11-21 22:10:03 -07:00
parent 2ef3781935
commit 91c92c9675
3 changed files with 71 additions and 16 deletions

View file

@ -22,11 +22,13 @@
#include <simd/simd.h>
typedef NS_ENUM(NSInteger, BufferIndex) {
BufferIndexMeshPositions = 0,
BufferIndexNormals = 1,
BufferIndexMeshGenerics = 2,
BufferIndexFaceNormals = 3,
BufferIndexUniforms = 4,
BufferIndexMeshPositions = 0,
BufferIndexNormals = 1,
BufferIndexMeshGenerics = 2,
BufferIndexFaceNormals = 3,
BufferIndexUniforms = 4,
BufferIndexLights = 5,
BufferIndexMaterials = 6,
};
typedef NS_ENUM(NSInteger, NormalBufferIndex) {