Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

ocean

> 编程语言
Open source

Realistic water shader for Three.js

792 stars0 likes2 views
WebsiteGitHub

About

Realistic water shader for Three.js

ocean - Realistic water shader for Three.js

This project propose an implementation of a three.js shader to provide a realistic plane water effect. It can be used to render water in some situations like complete ocean or small surface of water in real time.

Demos

  • Demo
  • Basic demo
  • Mobile control demo
  • Fog and rotation demo

Dependencies

  • Three.js r71 to render the scene : https://github.com/mrdoob/three.js/
  • JQuery 1.10.2 as a helper : https://github.com/jquery/jquery
  • Terrain-generator for procedural terrain generation : https://github.com/jbouny/terrain-generator

Sources

  • Slayvin - http://slayvin.net Use of the flat mirror implementation for three.js as a base : https://code.google.com/p/mirror-three-js/source/browse/FlatMirror.js

  • Stemkoski - http://www.adelphi.edu/~stemkoski Use of the adaptation of the flat mirror implementation to provide a water effect

  • Jonas Wagner - http://29a.ch/ The real rendering come from here : http://29a.ch/slides/2012/webglwater, an explanation on how to render water. With some adaptation of its shader, results are here.

Screenshot

Issues· 9 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言