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:
@@ -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;"
|
||||
|
Reference in New Issue
Block a user