shader version can't divert

pull/3471/head
kallaballa 2 years ago
parent 66426fd485
commit b8a69aebc3
  1. 8
      src/shader/shader-demo.cpp

@ -173,12 +173,6 @@ void load_shader(){
const string shaderVersion = "300 es"; const string shaderVersion = "300 es";
#endif #endif
#ifndef __EMSCRIPTEN__
const string fragHeader = "330";
#else
const string fragHeader = "300 es";
#endif
const string vert = " #version " + shaderVersion + R"( const string vert = " #version " + shaderVersion + R"(
in vec4 position; in vec4 position;
@ -187,7 +181,7 @@ void load_shader(){
gl_Position = vec4(position.xyz, 1.0); gl_Position = vec4(position.xyz, 1.0);
})"; })";
const string frag = "#version " + fragHeader + R"( const string frag = "#version " + shaderVersion + R"(
precision highp float; precision highp float;
out vec4 outColor; out vec4 outColor;

Loading…
Cancel
Save