All Projects → tiagosr → ofxShadertoy

tiagosr / ofxShadertoy

Licence: other
Addon for openFrameworks that sets up and loads Shadertoy (http://www.shadertoy.com) shaders

Programming Languages

C++
36643 projects - #6 most used programming language
GLSL
2045 projects
Makefile
30231 projects

Projects that are alternatives of or similar to ofxShadertoy

Shader Doodle
A friendly web-component for writing and rendering shaders.
Stars: ✭ 356 (+362.34%)
Mutual labels:  shaders, glsl, shadertoy
30-days-of-shade
30 days of shaders in GLSL using GLSLCanvas
Stars: ✭ 134 (+74.03%)
Mutual labels:  shaders, glsl, shadertoy
Shadertoy React
6kB "Shadertoy" like react component letting you easily render your fragment shaders in your React web projects, without having to worry about implementing the WebGL part.
Stars: ✭ 74 (-3.9%)
Mutual labels:  shaders, glsl, shadertoy
YALCT
Yet Another Live Coding Tool - Powered by Veldrid and elbow grease
Stars: ✭ 25 (-67.53%)
Mutual labels:  shaders, glsl, shadertoy
Shaderman
Convert ShaderToy to Unity HLSL/CG
Stars: ✭ 734 (+853.25%)
Mutual labels:  shaders, glsl, shadertoy
Riftray
Step into the worlds of Shadertoy with an Oculus Rift.
Stars: ✭ 68 (-11.69%)
Mutual labels:  shaders, glsl, shadertoy
Noodlesplate
Offline Shader Editor with many cool features
Stars: ✭ 79 (+2.6%)
Mutual labels:  shaders, glsl, shadertoy
shaderplace
Real-time collaborative GLSL livecode editor
Stars: ✭ 43 (-44.16%)
Mutual labels:  shaders, glsl
Glsl Godrays
This module implements a volumetric light scattering effect(godrays)
Stars: ✭ 155 (+101.3%)
Mutual labels:  shaders, glsl
Glsltuto
GLSL shaders tutorial
Stars: ✭ 168 (+118.18%)
Mutual labels:  shaders, glsl
Shadertoy Browser
Shadertoy browser & viewer for Mac built in Rust
Stars: ✭ 176 (+128.57%)
Mutual labels:  shaders, shadertoy
NobleRT
A Minecraft shaderpack that enhances one's experience with the help of good-looking graphics and light simulations.
Stars: ✭ 76 (-1.3%)
Mutual labels:  shaders, glsl
Glsl
VSIX Project that provides GLSL language integration.
Stars: ✭ 155 (+101.3%)
Mutual labels:  shaders, glsl
Gaiasky
Mirror of Gaia Sky repository hosted on Gitlab: https://gitlab.com/langurmonkey/gaiasky
Stars: ✭ 162 (+110.39%)
Mutual labels:  shaders, glsl
Reshade
A generic post-processing injector for games and video software.
Stars: ✭ 2,285 (+2867.53%)
Mutual labels:  shaders, glsl
React Regl
React Fiber Reconciler Renderer for Regl WebGL
Stars: ✭ 171 (+122.08%)
Mutual labels:  shaders, glsl
Retrace.gl
Create, ray trace & export programatically defined Signed Distance Function CSG geometries with an API suited for generative art - in your browser! 🎉
Stars: ✭ 149 (+93.51%)
Mutual labels:  shaders, glsl
Spirv Vm
Virtual machine for executing SPIR-V
Stars: ✭ 173 (+124.68%)
Mutual labels:  shaders, glsl
glNoise
A collection of GLSL noise functions for use with WebGL with an easy to use API.
Stars: ✭ 185 (+140.26%)
Mutual labels:  shaders, glsl
Shadered
Lightweight, cross-platform & full-featured shader IDE
Stars: ✭ 3,247 (+4116.88%)
Mutual labels:  shaders, glsl

ofxShadertoy

ofxaddons

openFrameworks addon for loading and displaying shaders from the Shadertoy page.
Shadertoy is (c) iq
This addon is distributed under the terms of the MIT License.

Usage

  1. Set up your project to use the programmable shader. in the int main(...) function, set your window to use OpenGL 3.2 or greater:

    ofGLWindowSettings settings;
    settings.setGLVersion(3, 2);    // <--- ofxShadertoy NEEDS the GL Programmable Renderer
    settings.width = 1024;
    settings.height = 768;
    ofCreateWindow(settings);       // <-------- setup the GL context
  2. Set up the ofxShadertoy to load a file with the shadertoy glsl code

    ofxShadertoy shadertoy;
    ...
    shadertoy.load("shaders/raymarch.frag");
  3. Set up textures if needed by the shader

    shadertoy.setTexture(0, nifty_texture);
  4. In your draw() routine, draw a quad (or use begin() and end() to set up the shaders for a mesh) Effects happen in screen space.

Extensions

I've set up some extensions to the shader parameters, mostly relating to using a camera (for use, non-exclusively, with another one of my addons, ofxFPSControls). The new uniforms are:

uniform mat4 tCameraMatrix; - a camera matrix that can be set up using ofCamera or any child class (e.g. ofxFPSControls)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].