mirror of
https://github.com/libretro/slang-shaders.git
synced 2024-11-27 02:20:41 +00:00
fixed undefined function in warp_koko() (#593)
* there were an undefined function, fixed * fixed name
This commit is contained in:
parent
8bdee83e38
commit
9c930380c5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user