mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-17 13:14:30 +00:00
nicer slshader
This commit is contained in:
1 parent
351eda2b5d
commit
4c6500514e
1 file changed
+2
-2
+2
-2
@@ -1916,9 +1916,9 @@ EX namespace slr {
|
||||
|
||||
"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);"
|
||||
|
||||
|
||||
Reference in new issue
Block a user