A UIView subclass for rendering an OpenGL ES 2.0 fragment shader
This example creates a shader view, loads the example shader source, and animates it at 30 frames per second.
UFDShaderView *shaderView = [[UFDShaderView alloc] initWithFrame:self.view.bounds];
[shaderView loadFragmentShader:kUFDShaderViewExampleFragmentShaderSource error:nil];
shaderView.animating = YES;
[self.view addSubview:shaderView];
This will make this awesome thingy appear:
uniform float time; // time in seconds
uniform vec2 touch; // location of current touch
uniform vec2 resolution; // resolution of the view
- Retina support
- OpenGL ES 3.0
- CocoaPod
Credits would be nice I guess.