depressed-pho / natural-mystic-shaders

Shader pack for Minecraft Bedrock aliming to be as realistic as possible
Creative Commons Zero v1.0 Universal
28 stars 3 forks source link

Add underwater visual waves #38

Closed pasithea2 closed 5 years ago

pasithea2 commented 5 years ago

Underwater you should distort vision. I have seen this before in RSPE shaders. I really liked it.

depressed-pho commented 5 years ago

But in real life things don't look distorted when you are inside a body of water. That distortion effect happens only when you are looking at things in water from outside (which I really want to do but is impossible in the current rendering engine).

The distortion happens when a ray of light passes from one medium to another with different refractive indices. Suppose you are outside of water and looking at a stone on the bottom. In this case there are two media, air and water, between your eyes and the stone, and their refractive indices are very different so the distortion effect will occur. But when both you and the stone are in water, there is just one medium (which is water) so refraction can't happen.

In short, the effect RSPE does is not based on the real world optics so I'm not going to do it.