Rewrite lighting shader to use Light and Material objects
This commit is contained in:
parent
2ef3781935
commit
91c92c9675
3 changed files with 71 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue