Fix weather effects with offset viewports

Rain falls in the right place when the viewport is offset, now. Fixes issues #269 and #268.