Crates.io | grimoire |
lib.rs | grimoire |
version | 0.2.1 |
source | src |
created_at | 2018-06-18 16:03:28.754488 |
updated_at | 2019-03-22 03:11:06.394467 |
description | grimoire is a cross-platform live-coding tool for creating GLSL shader demos |
homepage | |
repository | https://github.com/jshrake/grimoire |
max_upload_size | |
id | 70669 |
size | 188,023 |
grimoire is a cross-platform (Windows, MacOS, "Linux") live-coding tool for creating GLSL shader demos in the style of shadertoy and vertexshaderart. Users write a TOML configuration file that defines resources (image, video, audio, webcam, 3D texture, kinect data) and render passes (vertex shader, fragment shader, primitive type and count, blend state, depth state, uniform samplers). Your shaders, resources, and config file are watched for changes and are live updated at runtime. See the examples below to get started or read the SPEC.md for a detailed description of the configuration schema and runtime behavior.
grimoire is my personal prototyping tool and is in the early stages of development. You may encounter bugs and features may change without notice. Do not expect support. With that out of the way, I think you will find grimoire an easy to use, robust, and powerful tool for prototyping shader effects. Feedback is welcome!
The following shaders demonstrate compatibility with various shadertoy features. All content is copyright by the original author and licensed under the terms specified, or by the default shadertoy license. If you do not want your work included in this list, you can contact me and I will remove it immediately.
cargo run -- ./examples/shadertoy-new
cargo run -- ./examples/shadertoy-debug
cargo run -- ./examples/shadertoy-mouse
cargo run -- ./examples/shadertoy-keyboard-debug
cargo run -- ./examples/shadertoy-time
cargo run -- ./examples/shadertoy-fps
cargo run -- ./examples/shadertoy-microphone
cargo run -- ./examples/shadertoy-sound
cargo run -- ./examples/shadertoy-deformation-feedback
cargo run -- ./examples/video
cargo run -- ./examples/webcam
You need to build and install grimoire from source using rust and install the required system dependencies:
grimoire currently builds against rust stable 1.33, 2018 edition.
$ curl https://sh.rustup.rs -sSf | sh
$ brew install sdl2 gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav
If running on MacOS 10.14 (Mojave), be sure to manually copy Info.plist to target/debug
or target/release
before running a demo that uses a webcam or microphone resource. The presence of this file allows MacOS to prompt for permission to access the camera and microphone.
$ curl https://sh.rustup.rs -sSf | sh
$ apt-get install libsdl2-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
x86_64-pc-windows-gnu
toolchain: rustup default stable-x86_64-pc-windows-gnu
$ pacman -S mingw-w64-x86_64-pkg-config mingw-w64-x86_64-SDL2 mingw-w64-x86_64-GStreamer mingw-w64-x86_64-gst-plugins-base mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad mingw-w64-x86_64-gst-plugins-ugly mingw-w64-x86_64-gst-libav
Note that you need to ensure that your PATH
contains the mingw64/bin directory, and that your PKG_CONFIG_PATH
lists the directory containing all the .pc files. Since I installed msys2 with scoop, my .bash_profile
contains the following lines:
PATH="$PATH:/c/Users/jshrake/scoop/apps/msys2/current/mingw64/bin"
PKG_CONFIG_PATH="/c/Users/jshrake/scoop/apps/msys2/current/mingw64/lib/pkgconfig"
Breadcrumbs:
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.