diff --git a/src/ofxAutoReloadedShader.cpp b/src/ofxAutoReloadedShader.cpp index 547c230..6984082 100755 --- a/src/ofxAutoReloadedShader.cpp +++ b/src/ofxAutoReloadedShader.cpp @@ -18,6 +18,10 @@ bool ofxAutoReloadedShader::load(string shaderName ) return load( shaderName + ".vert", shaderName + ".frag", shaderName + ".geom" ); } +bool ofxAutoReloadedShader::load(string vertName, string shaderName ) +{ + return load( vertName, shaderName, "" ); +} // --------------------------------------------------------------------------------------------------------------------------------------------------- // bool ofxAutoReloadedShader::load(string vertName, string fragName, string geomName) diff --git a/src/ofxAutoReloadedShader.h b/src/ofxAutoReloadedShader.h index 6fafdb4..4e468dc 100755 --- a/src/ofxAutoReloadedShader.h +++ b/src/ofxAutoReloadedShader.h @@ -11,6 +11,7 @@ class ofxAutoReloadedShader : public ofShader // override the initialisation functions bool load(string shaderName ); + bool load(string vertName, string fragName); bool load(string vertName, string fragName, string geomName); bool reloadShaders();