Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *const kSPHTradeVertexShader = SHADER_STRING(
- attribute vec3 aPosition;
- attribute vec2 aTextureCoord;
- attribute vec3 aNormal;
- attribute vec4 aColor;
- attribute float aTimeOffset;
- attribute float aIntensity;
- attribute float aSpeed;
- attribute float aPeriodicity;
- uniform mat4 uMVMatrix;
- uniform mat4 uPMatrix;
- uniform mat3 uNMatrix;
- varying vec2 vTextureCoord;
- varying vec4 vColor;
- varying float vTimeOffset;
- varying float vIntensity;
- varying float vSpeed;
- varying float vPeriodicity;
- void main(void) {
- vTextureCoord = aTextureCoord;
- vColor = aColor;
- vTimeOffset = aTimeOffset;
- vIntensity = aIntensity;
- vSpeed = aSpeed;
- vPeriodicity = aPeriodicity;
- gl_Position = uPMatrix * uMVMatrix * vec4(aPosition, 1.0);
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement