diff options
author | Chaosus <chaosus89@gmail.com> | 2019-07-29 17:08:25 +0300 |
---|---|---|
committer | Chaosus89 <chaosus89@gmail.com> | 2019-09-14 18:23:25 +0300 |
commit | 1333ea2a2d70d45a295702c2d941e7bfb00bfe94 (patch) | |
tree | 5226c40390390089735f7faf25c33ca6e4b57b69 /drivers/gles3 | |
parent | 24e1039eb6fe32115e8d1a62a84965e9be19a2ed (diff) |
Implement shader array support for varyings
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/shader_compiler_gles3.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gles3/shader_compiler_gles3.cpp b/drivers/gles3/shader_compiler_gles3.cpp index 0121d88f4d..3f21be8dd3 100644 --- a/drivers/gles3/shader_compiler_gles3.cpp +++ b/drivers/gles3/shader_compiler_gles3.cpp @@ -467,6 +467,11 @@ String ShaderCompilerGLES3::_dump_node_code(SL::Node *p_node, int p_level, Gener vcode += _prestr(E->get().precision); vcode += _typestr(E->get().type); vcode += " " + _mkid(E->key()); + if (E->get().array_size > 0) { + vcode += "["; + vcode += itos(E->get().array_size); + vcode += "]"; + } vcode += ";\n"; r_gen_code.vertex_global += interp_mode + "out " + vcode; r_gen_code.fragment_global += interp_mode + "in " + vcode; |