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