TheOpenSpaceProgram / new-ospgl

A space exploration game in OpenGL. Devblog: https://tatjam.github.io/index.html
MIT License
43 stars 6 forks source link

Render oceans as a GPU sphere #32

Open tatjam opened 2 years ago

tatjam commented 2 years ago

Oceans are mostly spherical (or ellipsoidal) so we could just draw a single quad and generate the sphere directly on the GPU. Other water bodies would use the old system