Skip to content

dtcxzyw/shadertoy

Repository files navigation

shadertoy


build-windows build-linux build-macos

Unofficial ShaderToy live viewer

Gallery

goo

expansive reaction-diffusion

mandelbrot

MultiscaleMIPFluid

RainbowSand

subsurface

noise-contour

cubemaps

See examples for more shaders.

Features

Render passes:

  • Image
  • Cubemap
  • Sound
  • Buffer
  • Common

Channels:

  • Textures
  • Music
  • Video
  • Volumes
  • Cubemaps
  • Buffer
  • Keyboard
  • Webcam
  • Microphone

Utilities:

  • Import from shadertoy.com
  • Render pass editor
  • GLSL shader editor
  • Export/import shaders in STTF(ShaderToy Transmission Format)
  • Screenshots
  • Video recording
  • Custom uniforms
  • Custom meshes
  • Anti aliasing

Contributions are welcome!

Releases

See Releases Page for pre-built binaries (windows x64/linux x86-64/macos arm64/macos x86-64).

Build Instructions

Prerequisites

  • Windows/Linux/macOS
  • CMake 3.12+
  • vcpkg
  • Graphics API: OpenGL 4.5+

Clone the repository

git clone --recursive https://github.com/dtcxzyw/shadertoy.git
cd shadertoy

Configure and build

cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<path-to-prefix> -DCMAKE_TOOLCHAIN_FILE=<path-to-vcpkg>/scripts/buildsystems/vcpkg.cmake
cmake --build build -j
cmake --build build -t install

Run shadertoy live viewer

<path-to-prefix>/shadertoy[.exe] [<path-to-sttf/shadertoy-url>]

License

This repository is licensed under the Apache License 2.0. See LICENSE for details.