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:
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
#if defined(BUMP) && defined(PARALLAX) then?