Update heights of plane geometry in a shader kernel

This commit is contained in:
Eryn Wells 2018-11-11 19:50:43 -05:00
parent e5678f291b
commit 3462fa2458
4 changed files with 80 additions and 10 deletions

View file

@ -41,16 +41,23 @@ typedef NS_ENUM(NSInteger, TextureIndex)
TextureIndexColor = 0,
};
typedef NS_ENUM(NSInteger, GeneratorTextureIndex)
{
typedef NS_ENUM(NSInteger, GeneratorBufferIndex) {
GeneratorBufferIndexVertexes = 0,
GeneratorBufferIndexTexCoords = 1,
GeneratorBufferIndexIndexes = 2,
GeneratorBufferIndexUniforms = 3,
};
typedef NS_ENUM(NSInteger, GeneratorTextureIndex) {
GeneratorTextureIndexIn = 0,
GeneratorTextureIndexOut = 1,
};
typedef struct
{
typedef struct {
matrix_float4x4 projectionMatrix;
matrix_float4x4 modelViewMatrix;
packed_float2 terrainDimensions;
packed_uint2 terrainSegments;
} Uniforms;
#define kRandomAlgorithmUniforms_RandomCount (41)