1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 09:57:41 +00:00

fixup to shaders and everything

This commit is contained in:
Zeno Rogue
2019-08-25 19:44:10 +02:00
parent d4ac431004
commit afac8bf24a
2 changed files with 3 additions and 3 deletions

View File

@@ -1027,7 +1027,7 @@ EX namespace slr {
" }"
" }"
"else {"
" hi_gphi = phi; hi_s = phi; hi_alpha = 9;"
" hi_gphi = phi; hi_s = phi; hi_alpha = 9.;"
" int next_nan = 1;"
" float mina = PI/4.;"
" float maxa = PI/2.;"
@@ -1055,7 +1055,7 @@ EX namespace slr {
" }"
" }"
" }"
"if(hi_alpha < 9) {"
"if(hi_alpha < 9.) {"
"float fr = (phi-lo_gphi) / (hi_gphi-lo_gphi);"
"alpha = lo_alpha + (hi_alpha-lo_alpha) * fr;"
"s = lo_s + (hi_s-lo_s) * fr;"