Skip to content

MichaelStraube/shaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shaders

Collection of Shadertoy shaders displayed in a Qt window.

Build

mkdir build
cd build
cmake ../ -DCMAKE_BUILD_TYPE=Release
make

Usage

You can skip through the shaders with the mouse wheel.

Adding a new shader

  • Add fragment shader and texture files
  • Add header file for the new effect
  • Add new effect to the effects enum in mainwindow.h
  • Add new case in MainWindow::setEffect()
  • Update CMakeLists.txt and resources.rc

See existing files for examples.

Currently supported Shadertoy variables

uniform vec3         iResolution              // viewport resolution (in pixels)
uniform float        iTime                    // shader playback time (in seconds)
uniform vec3         iChannelResolution[4]    // channel resolution (in pixels)
uniform vec4         iMouse                   // mouse pixel coords. xy: current (if MLB down), zw: click
uniform samplerXX    iChannel0..3             // input channel. XX = 2D/Cube

Credits

License

About

Shadertoy shaders in a Qt window

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published