You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having a hard time doing the shadow mapping after changing my code according to the chapter "Technical difficulties: linear interpolation with perspective deformations".
My own thought about this problem is that we used the z-value of the original P, but the index (x+y*width) of the shadowBuffer for that z-value comes from the P', (original P after the MVP transformation). So, the pixel doesn't match the z-value.
Please correct me if I am wrong.
Also, I tried to download the sample code from the master branch and run it. But I didn't see the shadow, either. Does anyone successfully do the shadow mapping? Any hints would be helpful, I would appreciate it!