Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *const kSPHTradeFragmentShader = SHADER_STRING(
- precision highp float;
- varying vec2 vTextureCoord;
- varying vec4 vColor;
- varying float vTimeOffset;
- varying float vIntensity;
- varying float vSpeed;
- varying float vPeriodicity;
- uniform sampler2D uSampler;
- uniform float uTime;
- void main(void) {
- highp float time = uTime + vTimeOffset;
- vec4 textureColor = texture2D(uSampler, vec2(vTextureCoord.x, (vTextureCoord.y * vPeriodicity) + (time * vSpeed)));
- gl_FragColor = vec4(vColor.rgb, textureColor.a * vIntensity);
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement