From 7b47d9b743e5b2c93acc67e32c9f0f1d8441d452 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Mon, 27 Feb 2023 16:10:16 +0100 Subject: [PATCH] emscripten shader --- example/src/ofApp.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example/src/ofApp.cpp b/example/src/ofApp.cpp index 0587b3a..fc87486 100644 --- a/example/src/ofApp.cpp +++ b/example/src/ofApp.cpp @@ -1,5 +1,6 @@ #include "ofApp.h" #include "generator-config.h" +#include "ofFileUtils.h" #include "ofGraphics.h" #include "ofUtils.h" #include "save-bmp.h" @@ -69,7 +70,11 @@ void ofApp::setup(){ deinitializeFreetype(ft); } - shader.load("ofxMsdfgen/shaders/simple/GL3/shader"); + #ifdef TARGET_EMSCRIPTEN + shader.load("ofxMsdfgen/shaders/simple/ES3/shader"); + #else + shader.load("ofxMsdfgen/shaders/simple/GL3/shader"); + #endif } //--------------------------------------------------------------