mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 05:10:57 +00:00
use shader uniforms for scaling cube
This commit is contained in:
@ -11,7 +11,8 @@
|
||||
#include <simd/simd.h>
|
||||
|
||||
typedef NS_ENUM(NSInteger, ShaderInputIdx) {
|
||||
ShaderInputIdxVertices = 0
|
||||
ShaderInputIdxVertices = 0,
|
||||
ShaderInputIdxUniforms = 1
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
@ -20,4 +21,9 @@ typedef struct {
|
||||
vector_float2 texCoord;
|
||||
} ShaderVertex;
|
||||
|
||||
typedef struct {
|
||||
matrix_float4x4 model;
|
||||
matrix_float4x4 projView;
|
||||
} ShaderUniforms;
|
||||
|
||||
#endif//SHADERTYPES_H
|
||||
|
Reference in New Issue
Block a user