Remove the Uniforms.c file

This commit is contained in:
Eryn Wells 2018-11-21 08:42:17 -07:00
parent 73d162337c
commit 4e5dfcf20b
4 changed files with 1 additions and 30 deletions

View file

@ -70,15 +70,5 @@ typedef struct {
packed_uint2 terrainSegments;
} Uniforms;
#define kRandomAlgorithmUniforms_RandomCount (41)
typedef struct {
uint randoms[kRandomAlgorithmUniforms_RandomCount];
} RandomAlgorithmUniforms;
#ifndef __METAL_VERSION__
extern void RandomAlgorithmUniforms_refreshRandoms(RandomAlgorithmUniforms *uniforms);
#endif
#endif /* ShaderTypes_h */

View file

@ -43,6 +43,7 @@ vertex ColorInOut vertexShader(Vertex in [[stage_in]],
out.position = uniforms.projectionMatrix * eyeCoords;
out.eyeCoords = eyeCoords;
// TODO: Use the face normal.
out.normal = normalize(in.normal);
out.texCoord = in.texCoord;

View file

@ -1,16 +0,0 @@
//
// Uniforms.c
// Terrain2
//
// Created by Eryn Wells on 11/6/18.
// Copyright © 2018 Eryn Wells. All rights reserved.
//
#include <stdio.h>
#include "ShaderTypes.h"
void RandomAlgorithmUniforms_refreshRandoms(RandomAlgorithmUniforms *uniforms) {
for (int i = 0; i < kRandomAlgorithmUniforms_RandomCount; i++) {
uniforms->randoms[i] = arc4random();
}
}