Add Julia set shader

This commit is contained in:
Dimitri Lozeve 2021-02-23 22:27:46 +01:00
parent d2f8ca7ed3
commit 0b0ed67bc2
2 changed files with 70 additions and 1 deletions

View file

@ -48,7 +48,7 @@ vec2 f(vec2 z) {
void main() {
vec2 z = vec2(0.0);
int i = 0;
while (length(z) <= 4 && i < 1000) {
while (length(z) <= 2 && i < 1000) {
z = f(z);
i++;
}