Skip to content

Simple fragment shader to render and zoom in on Mandelbrot sets. Highlights the limitations of single precision GPU arithmetic for this problem.

License

Notifications You must be signed in to change notification settings

TommiKabelitz/Mandel_GL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mandel_GL

Example

Basic code for rendering zoomable Mandelbrot sets using OpenGL with a fragment shader.

The code is functional, but does not include any of the required Glad, GLFW, or OpenGL headers or source.

When running, left click to zoom in, right click to zoom out.

The shader is currently implemented using single precision and quickly shows the limitations of single precision for rendering zoomed Mandelbrot sets (see below). I may consider investigating higher precision either through direct use of doubles or manual float-float precision at a future time.

Mandel

About

Simple fragment shader to render and zoom in on Mandelbrot sets. Highlights the limitations of single precision GPU arithmetic for this problem.

Resources

License

Stars

Watchers

Forks