← Back

ofxShaderUtill

github.com/asaiyuta/ofxShaderUtill · @asaiyuta
OF 0.9 Shaders Graphics

Helper for publishing uniform arguments such as vectors, textures, and FBOs to an ofShader instance.

1 0 Last commit 9y ago Created 9y ago

README

ofxShaderUtill

publishing uniform



``cpp:example ofShader shader; ofxShaderUtill shaderUtill; ofVec2f vec; ofFbo fbo; ofTexture tex; void setup(){ ... shaderUtill.setShader(shader); shaderUtill.publishUniformArg("force", vec); shaderUtill.publishUniformArg("tex0", tex, 0); shaderUtill.publishUniformArg("tex1", fbo, 1); ... } void draw(){ ... shaderUtill.begin(); ... shaderUtill.end(); ... } ``

Get this addon

HTTPS
SSH