ray:: fixed getters built with wall_via_texture

This commit is contained in:
Zeno Rogue committed 2021-06-03 13:26:10 +02:00
1 parent 10bb713422
commit 2c59bb3004
1 file changed
+5 -3
+5 -3
View File
@@ -373,9 +373,11 @@ void enable_raycaster() {
"uniform mediump mat4 uM[" + its(gms_limit) + "];\n";
#ifdef GLES_ONLY
fsh += build_getter("mediump vec4", "uWallX", irays);
fsh += build_getter("mediump vec4", "uWallY", irays);
fsh += build_getter("mediump int", "uWallstart", deg+1);
if(!wall_via_texture) {
fsh += build_getter("mediump vec4", "uWallX", irays);
fsh += build_getter("mediump vec4", "uWallY", irays);
fsh += build_getter("mediump int", "uWallstart", deg+1);
}
if(!m_via_texture)
fsh += build_getter("mediump mat4", "uM", gms_limit);
#endif