mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 05:10:57 +00:00
instancing
This commit is contained in:
@ -12,7 +12,8 @@
|
||||
|
||||
typedef NS_ENUM(NSInteger, ShaderInputIdx) {
|
||||
ShaderInputIdxVertices = 0,
|
||||
ShaderInputIdxUniforms = 1
|
||||
ShaderInputIdxInstance = 1,
|
||||
ShaderInputIdxUniforms = 2
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
@ -23,6 +24,10 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
matrix_float4x4 model;
|
||||
vector_float4 color;
|
||||
} ShaderInstance;
|
||||
|
||||
typedef struct {
|
||||
matrix_float4x4 projView;
|
||||
} ShaderUniforms;
|
||||
|
||||
|
Reference in New Issue
Block a user