Skip to content

Real-time OpenGL ocean shader using C++17, GLFW, GLAD, and GLSL - includes dynamic wave simulation, raymarching, and atmospheric lighting.

Notifications You must be signed in to change notification settings

ArchiePayne/WaterShader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌊 WaterShader

A real-time OpenGL demo rendering an animated ocean surface using custom GLSL shaders, raymarching, and atmospheric effects.

✨ Features

  • Dynamic ocean surface using procedurally generated waves
  • Simple raymarching for wave-surface intersection
  • Fast atmosphere approximation for realistic sky color
  • Written in modern C++17 with GLFW, GLAD, and GLSL

Original shader on Shadertoy

🛠️ Building

Requirements

  • CMake ≥ 3.10
  • GLFW headers and binaries
  • Glad
  • GLFW & Glad is assumed to be in the root directory
  • C++17-compatible compiler (e.g., MSVC, clang, g++)

💻 Build (Visual Studio)

Open a terminal in the root directory and run:

cmake -S . -B build -G "Visual Studio 17 2022"
cmake --build build --config Debug    # or Release

About

Real-time OpenGL ocean shader using C++17, GLFW, GLAD, and GLSL - includes dynamic wave simulation, raymarching, and atmospheric lighting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published