AB
Size: a a a
🅰🅱
VD
G
shader julia(
int maxIter = 64,
float x0 = 0.,
float y0 = 0.,
output float outColor = 0.,
) {
float x = P.x, y = P.y;
for (float i = 0.; i < float(maxIter); i++) {
float xsq = x*x, ysq = y*y;
if (xsq + ysq >= 2.) {
outColor = i / 200.;
return;
}
y = 2. * x * y + y0 * .01;
x = xsq - ysq + x0 * .01;
}
}
G
🅰🅱
G
N
N
N
N
G
N
G
VD
VD
N
N
VD
N