Cheap misty effect

fragment-shader
clipping-planes
#1

Hi community!
Here is a picture:


And there is a working demo:

The idea is to use functionality of clipping planes, with some modifications of the code for clipping :slight_smile: Now it’s not clipping, but interpolation between values of 0 and the depth of fog, using distance from a point to the plane.

Looks fine when the camera is above the plane, but when it goes down below, then you can see what’s the trick.

9 Likes
#2

Very nice :ok_hand:

1 Like