Technical Environment Artist, Unity Asset Store publisher, pixel plumber, INTP and borderline tree hugger. Worked on @Lake_The_Game
Jul 3, 2021 • 9 tweets • 4 min read
Some background on how I'm rendering the water line, because it's almost arcane 🪄 #unity3d
The key goal is figuring out if a certain pixel on the screen is above, or below water. This in turn can be used to apply effects to a specific part of the screen.
I've tried a bunch of different things, none worked reliably, or were prohibitively expensive. Witcher 3 has this, so technically was possible! What ended up working flawlessly is rendering a subdivided plane directly on the camera's plane, then animating it.