mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
parent
123ee5995c
commit
bfa834a78a
@ -461,6 +461,11 @@ String ShaderCompilerRD::_dump_node_code(const SL::Node *p_node, int p_level, Ge
|
||||
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 += "layout(location=" + itos(index) + ") " + interp_mode + "out " + vcode;
|
||||
r_gen_code.fragment_global += "layout(location=" + itos(index) + ") " + interp_mode + "in " + vcode;
|
||||
|
Loading…
Reference in New Issue
Block a user