mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
ray:: auto-entered sizes of uWall* uniforms
This commit is contained in:
parent
41107f13d6
commit
a766abdff7
@ -125,6 +125,8 @@ void enable_raycaster() {
|
|||||||
#endif
|
#endif
|
||||||
" }\n";
|
" }\n";
|
||||||
|
|
||||||
|
string rays = its(isize(cgi.raywall));
|
||||||
|
|
||||||
string fsh =
|
string fsh =
|
||||||
"varying vec4 at;\n"
|
"varying vec4 at;\n"
|
||||||
"uniform int uLength;\n"
|
"uniform int uLength;\n"
|
||||||
@ -137,10 +139,10 @@ void enable_raycaster() {
|
|||||||
"uniform sampler2D tWallcolor;\n"
|
"uniform sampler2D tWallcolor;\n"
|
||||||
"uniform sampler2D tTexture;\n"
|
"uniform sampler2D tTexture;\n"
|
||||||
"uniform sampler2D tTextureMap;\n"
|
"uniform sampler2D tTextureMap;\n"
|
||||||
"uniform vec4 uWallX[60];\n"
|
"uniform vec4 uWallX["+rays+"];\n"
|
||||||
"uniform vec4 uWallY[60];\n"
|
"uniform vec4 uWallY["+rays+"];\n"
|
||||||
"uniform vec4 uFogColor;\n"
|
"uniform vec4 uFogColor;\n"
|
||||||
"uniform int uWallstart[16];\n"
|
"uniform int uWallstart["+its(S7)+"];\n"
|
||||||
"uniform float uLinearSightRange, uExpStart, uExpDecay;\n";
|
"uniform float uLinearSightRange, uExpStart, uExpDecay;\n";
|
||||||
|
|
||||||
if(IN_ODS) fsh +=
|
if(IN_ODS) fsh +=
|
||||||
|
Loading…
Reference in New Issue
Block a user