From 1333ea2a2d70d45a295702c2d941e7bfb00bfe94 Mon Sep 17 00:00:00 2001 From: Chaosus Date: Mon, 29 Jul 2019 17:08:25 +0300 Subject: Implement shader array support for varyings --- drivers/gles2/shader_compiler_gles2.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gles2') diff --git a/drivers/gles2/shader_compiler_gles2.cpp b/drivers/gles2/shader_compiler_gles2.cpp index 640d45ae65..92bf0e29e2 100644 --- a/drivers/gles2/shader_compiler_gles2.cpp +++ b/drivers/gles2/shader_compiler_gles2.cpp @@ -353,6 +353,11 @@ String ShaderCompilerGLES2::_dump_node_code(SL::Node *p_node, int p_level, Gener varying_code += _typestr(E->get().type); varying_code += " "; varying_code += _mkid(E->key()); + if (E->get().array_size > 0) { + varying_code += "["; + varying_code += itos(E->get().array_size); + varying_code += "]"; + } varying_code += ";\n"; String final_code = varying_code.as_string(); -- cgit v1.2.3