https://github.com/codekitchen/oceanglobeprototype
https://github.com/codekitchen/oceanglobeprototype
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codekitchen/oceanglobeprototype
- Owner: codekitchen
- Created: 2017-02-25T18:20:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T18:34:22.000Z (over 9 years ago)
- Last Synced: 2025-03-18T14:49:08.145Z (about 1 year ago)
- Language: C#
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ocean Globe
I was curious how [Polka Dot Pirate](https://managore.itch.io/polka-dot-pirate) implemented its "ocean globe" effect, so I did some research and spent a couple hours building out this similar effect in Unity.

The Gerstner Wave code was adapted from [this GPU Gems chapter](http://http.developer.nvidia.com/GPUGems/gpugems_ch01.html), and the terrain is generated from a simple Perlin octave function I've used in other games. The flat plane is wrapped around a semisphere using a buch of Trigonometry functions that I'm glad I worked through, because my Trig is rusty after 15 years of non-use.
I don't intend to do anything further with this, feel free to use any of the code under MIT license.