Skip to content

Ocean Details

pjcozzi edited this page Nov 5, 2012 · 6 revisions

Implementation ideas for rendering the ocean.

  • Implement by creating a material with Fabric.
  • Use a specular map so we know what is water and what is land. Let's not worry about the resolution for the moment. Coastlines will look bad. Also use the specular map so when water is near land,
    • it flows differently
    • it is shallower and therefore animates and renders differently.
  • We have noise functions to animate the water. Check the reference help for our GLSL built-ins.
  • Fresnel - reflection and refraction depend on the view angle.
  • A nice WebGL demo and details.

Resources