fixed undefined function in warp_koko() (#593)

* there were an undefined function, fixed

* fixed name
This commit is contained in:
Antonio Orefice 2024-05-19 15:35:43 +02:00 committed by GitHub
parent 8bdee83e38
commit 9c930380c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,10 +39,9 @@ vec2 Warp_koko(vec2 co, vec2 w, float protrusion) {
czoom = mix(czoom, czoom * protrusion, czoom);
vec2 czoom2d = mix(vec2(1.0), vec2(czoom), w);
vec2 coff = mix( vec2(0.0), vec2(0.625), w);
return zoomxy(co, coff + czoom2d );
return 0.5 + (co - 0.5) / (coff + czoom2d);
}
// cgwg's geom
// license: GPLv2