Skip to content

lszl84/wx_gl_shadertoy_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A ShaderToy clone... but on Desktop!

Video

This simple app automatically compiles your GLSL fragment shader code and displays the result on the screen. Built with wxWidgets, the app works on Windows, Mac, and Linux.

Full tutorial: https://www.youtube.com/watch?v=wxM9nkAQLHE

How this works

We use modern CMake's FetchContent functionality to download wxWidgets and GLEW (the latter is needed to resolve OpenGL function addresses).

Requirements

This works on Windows, Mac, and Linux. You'll need cmake and a C++ compiler (tested on clang, gcc, and MSVC).

Linux builds require the GTK3 library and headers installed in the system. You can install them on Ubuntu using:

sudo apt install libgtk-3-dev

OpenGL tutorials require OpenGL development package on Linux (Windows and Mac should work out of the box):

sudo apt install libglu1-mesa-dev

Building

To build the project, use:

cmake -S. -Bbuild
cmake --build build -j

This will create a directory named build and create all build artifacts there. The main executable can be found directly in the build/ folder.


Check out the blog for more! www.lukesdevtutorials.com

About

Building a Desktop tool for experimenting with GLSL shaders

Topics

Resources

License

Stars

Watchers

Forks