Fragtal

Feb 5, 2024

shaders, C++, SDL2, Dear Imgui, Premake

Fragtal is a single pass C++ fragment shader editor with build in code editor and compilation.

Source: Fragtal

Github Repo: https://github.com/shreyosgit/Fragtal


Inspiration


One of the main inspiration behind this project is shadertoy.com. The approach was to make something similar to what shadertoy does but for pc. With media export functionality.


Features


Some of the key features include,

1. Build in code editor

2. Real time build in code compilation and output

3. Shader performance metrics

4. Shader viewport play-pause and fullscreen mode

For, more info please visit my Milanote page.


Technical Overview


Fragtal uses SDL2.0 for the creation and handling of application window. The render loop and the UI is implemented using SDL2.0 and Dear ImGui(Docking Branch). The code editor implementation is taken from this Github Repo.


Future Dev Plan


1. Media export functionality

2. GPU accelarated rendering with lower level APIs

3. Adding multipass shader support

4. Custom titlebar support


Screenshots


Screenshot-1 Screenshot-2 Screenshot-3