mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-04 16:24:08 +00:00
nicer slshader
This commit is contained in:
parent
351eda2b5d
commit
4c6500514e
@ -1916,9 +1916,9 @@ EX namespace slr {
|
|||||||
|
|
||||||
"bool flipped = phi > 0.;"
|
"bool flipped = phi > 0.;"
|
||||||
|
|
||||||
"float alpha = atan2(h[1], -h[0]) + uIndexSL;"
|
"if(flipped) phi = -phi;"
|
||||||
|
|
||||||
"if(flipped) phi = -phi, alpha = atan2(h[1], h[0]) - uIndexSL;"
|
"float alpha = flipped ? atan2(h[1], h[0]) - uIndexSL : atan2(h[1], -h[0]) + uIndexSL;"
|
||||||
|
|
||||||
"float fiber_barrier = atan(1./uSV);"
|
"float fiber_barrier = atan(1./uSV);"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user