Can you help me pls to translate this shader into three js!
it tried in this way and just get a white screen!
#ifdef GL_ES
precision mediump float;
#endif
#define F length(.5-fract(gl_FragColor.xyw*=mat3(-2,-1,2, 3,-2,1, 1,2,2)*
uniform vec2 u_resolution;
void main() {
vec2 p = gl_FragCoord.xy / u_resolution.xy;
gl_FragColor.xy = p*(gl_FragColor.w+.2)*.1;
gl_FragColor = pow(min(min(F.5)),F.4))),F.3))), 7.)*25.+vec4(0,.35,.5,1);
}
pls try with this editor :
https://thebookofshaders.com/edit.php?log=180503054204
Thanks in advance =)