https://turbowarp.org/1338296066 An alternative version of my raymarched version that uses triangles. Because of this it can perform better at higher resolutions. WASDQE to move and arrow keys to look Made for @1170008152 who too was working on an infinite ocean Uses per quad lighting because: - I don't have much experience with rasterization - It is simpler - It is more performant Idea behind how it works: We start with a low resolution raytraced, seeing where the screen Ray intersects with a flat plane at y=0. Then, each of these positions for each pixel sample that we did, we move them by the wave function. Next, we convert these 3D points and project them onto the 2D screen, and then connect the vertices together and render the triangles onto the screen.
Uses @KryptoAlt 's Azex Triangle Filler, it is great