mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 11:54:48 +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 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.));"
|
||||
|
||||
"bool flipped = phi > 0.;"
|
||||
|
Loading…
Reference in New Issue
Block a user