jacres / of-ESMShadowMapping

Exponential Shadow Mapping in openFrameworks
59 stars 4 forks source link

Must #undef near and #undef far at the top of shadowMapLight.cpp to compile in Visual Studio #1

Open clayheaton opened 10 years ago

clayheaton commented 10 years ago

Your example app won't compile in Visual Studio 2012 without putting at the top of shadowMapLight.cpp:

#undef far
#undef near

Otherwise, it looks great! Should be part of oF core, in my opinion.

jacres commented 10 years ago

Hey thanks! I really need to update this example - I have a much newer version floating around somewhere with fixes like this put in. I think it would be best just to modify function and change the argument names to near_plane and far_plane (just to not cause problems with other things that may use near/far).

I'll update this example when I get some free time ;)