Nvidia support

Fixing some issues with Nvidia complaining about casts, which was causing both the terrain and grass shader to fail.
I also moved the if statement that set the vertex position to 0, as that was causing rendering glitches.