Hi,
For file DirectionalLight.cpp, we have 2 vector with the same name: direction vector of the directional light public d(in header file) and direction from source to light local d.
Online it says to use ::d to access the global d, but it turns out not working. I tried using this->d and it works.
Could someone explain abit on why ::d doesn't work in this case?