TianyuCheng / Rlanet-Renderer

A GPU-based planet renderer from scratch
11 stars 3 forks source link

Ocean reflection and refraction #14

Closed tycheng closed 9 years ago

tycheng commented 9 years ago

In the 'flat' branch, I created an Ocean class. The ocean has reflection right now, but the reflection only works correctly when the camera's under water view is not obstructed by under water terrain. We need to cull the under water objects.

I have not implemented refraction. I think we only need alpha value here.

tycheng commented 9 years ago

It turned out I have implemented FFT ocean before, but when I tested it, the result does not look good. I would consider take some time putting them back and see whether that looks better.