Following LibOrbis, the Pre-Compiled Shader Dumper, the GLES2 Playground and his recent help in Orbis Libs Gen PlayStation 4 homebrew developer masterzorag shared a PS4 OrbisDev Shader Player via GLSL Sandbox with scene devs for use in PS4 homebrew projects.
The demonstration can be seen at GLSLSandbox.com with the code below, and he sends out thanks to psxdev, fjtrujy and frangar for their contributions as well.
LibOrbis is love
The demonstration can be seen at GLSLSandbox.com with the code below, and he sends out thanks to psxdev, fjtrujy and frangar for their contributions as well.
Code:
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 resolution;
void main( void ) {
vec2 p = 2. * (gl_FragCoord.xy-resolution/2.) / resolution.y;
float f=0., r;
const float I = 16.;
for(float i=1.; i<=I; i++) {
if(abs(p.x)+abs(p.y)<1.) {
r = cos(time+.3*i)/2.;
if(p.x<2.*r) {
p.x -= r-.5;
p /= r+.5;
}
else {
p.x -= r+.5;
p /= r-.5;
}
f = i/I;
}
}
gl_FragColor = vec4(vec3(1.2, 1.5, 1.)*vec3(f), 1.);
}