Is there any way to declare variables so they can be used in other files, with the same value as the original? I've already tried to use varying
but it only works for the file .vsh
and .fsh
of the same part. Example:
In the composite.vsh file:
bool isNight = false;
void main() {
isNight = true;
}
Alas, I use this same variable in the skybasic.vsh file:
if (isNight) {
//está noite
}
without having to "recreate" all this variable again. How can I do this?