mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-01 03:39:16 +00:00
fixed slshader when xy==0
This commit is contained in:
parent
4d9775080d
commit
adc17dce1b
@ -1942,6 +1942,8 @@ EX namespace slr {
|
|||||||
"float xy = length(h.xy);"
|
"float xy = length(h.xy);"
|
||||||
"float phi = atan2(h[2], h[3]) + uIndexSL;"
|
"float phi = atan2(h[2], h[3]) + uIndexSL;"
|
||||||
|
|
||||||
|
"if(xy < 1e-6) return vec4(0.,0.,phi,1.);"
|
||||||
|
|
||||||
"vec4 res = vec4(sqrt(-1.),sqrt(-1.),sqrt(-1.),sqrt(-1.));"
|
"vec4 res = vec4(sqrt(-1.),sqrt(-1.),sqrt(-1.),sqrt(-1.));"
|
||||||
|
|
||||||
"bool flipped = phi > 0.;"
|
"bool flipped = phi > 0.;"
|
||||||
|
Loading…
Reference in New Issue
Block a user