← Back

ofxSmartShader

github.com/73-ch/ofxSmartShader · @73-ch
OF 0.11 Shaders Graphics

A drop-in ofShader wrapper that watches shader files, auto-reloads on change, and falls back to the last working version on errors.

3 0 Last commit 4y ago Created 7y ago

README

About



This addon is the wrapper of ofShader.

Feature

How to use

``c++

// declation ofxSmartShader shader; // simply replace "ofShader" with "ofxSmartShader"

// loading shader.load(VERTEX_PATH, FRAGMENT_PATH, VERTEX_WATCH_FLAG, FRAGMENT_WATCH_FLAG);

// if you don't want to watch shader, you can do it by ignoring flag arguments. shader.load(VERTEX_PATH, FRAGMENT_PATH);

// ... shader.begin();

shader.end();

``

License



This software is released under the MIT License, see LICENSE.txt.

Get this addon

HTTPS
SSH