Biolysis I figured something out at least, In my .gdshaderinc
files I want to use PI, but it does not exist, so I had to define it inside the definitions.gdshaderinc
as such:
const float PI = 3.14159265358979323846f;
But it seems that PI
is already defined in a .gdshader
file so in your project I get
And oddly in mine (which is the exact same as yours only that I started it on my own from scratch) I get the same error as before inside functions.gdshaderinc
.
btw: the error message is about line 121 because I copy pasted all the contents of my original definitions
and functions
in your respective shader files.
btw2: another, possibly unrelated issue, in your project if I decide to use an assert
Number ClampCosine(Number mu) {
assert(1 <= 2);
return clamp(mu, Number(-1.0), Number(1.0));
}
Then I get the following error:
I don't know if all these are bugs or what!