Skip to content

Advance OpenGL

Latest

Choose a tag to compare

@Mathys-Hymon Mathys-Hymon released this 04 Jun 23:36
· 87 commits to main since this release
43cd0c4

๐ŸŒŠ Water & Sand Shader Project ๐Ÿ–๏ธ

โœจ Whatโ€™s this?

OpenGL shaders for animated water and textured sand using tessellation.

  • Animated waves with noise displacement and soft foam ๐ŸŒŠ
  • Sand with procedural bumps and warm color tones ๐ŸŒž

advanceOpenGL-ezgif com-video-to-gif-converter

๐Ÿš€ Features

  • Tessellated mesh for realistic deformation
  • Smooth wave animation
  • Gentle foam effect on crests
  • Nice color gradients
  • Easy-to-tweak parameters (time, tiling)

๐ŸŽจ Included shaders

  • Vertex, Tess Control & Eval shaders
  • Fragment shaders for water & sand

โš™๏ธ How to use

  1. Enable tessellation in OpenGL
  2. Pass uniforms like uTime & uTiling
  3. Apply shaders on a plane with UVs in [0,1]
  4. Enjoy the view! ๐Ÿ˜Ž