Recently, I’ve experienced a shader error in the bump shader, which complained about undeclared TBN variable. I’ve looked into the source code and found this fragment:
Apparently, TBN is used in this snippet, which requires BUMP to be defined and also vBumpUV is used, which also requires BUMP to be defined. Shouldn’t this #ifdef be #if defined(BUMP) && defined(PARALLAX) then?