Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix screen-space distortion of bumpwater shader where it samples from…
… stuff closer in Z The edge of things in front of water also gets refraction distorted. We now check wether the depth buffer of the fragment being sampled in a distorted way is actuall in front of the water, and if it is, we replace the distortion sample with the original, undistorted screencopy.
- Loading branch information