emscripten shader

This commit is contained in:
jrkb 2023-02-27 16:10:16 +01:00
parent ea928d0190
commit 7b47d9b743

View file

@ -1,5 +1,6 @@
#include "ofApp.h" #include "ofApp.h"
#include "generator-config.h" #include "generator-config.h"
#include "ofFileUtils.h"
#include "ofGraphics.h" #include "ofGraphics.h"
#include "ofUtils.h" #include "ofUtils.h"
#include "save-bmp.h" #include "save-bmp.h"
@ -69,7 +70,11 @@ void ofApp::setup(){
deinitializeFreetype(ft); deinitializeFreetype(ft);
} }
#ifdef TARGET_EMSCRIPTEN
shader.load("ofxMsdfgen/shaders/simple/ES3/shader");
#else
shader.load("ofxMsdfgen/shaders/simple/GL3/shader"); shader.load("ofxMsdfgen/shaders/simple/GL3/shader");
#endif
} }
//-------------------------------------------------------------- //--------------------------------------------------------------