Browse Source

precision mediummp float

feature/replace-renderer
Martin Dørum 3 years ago
parent
commit
5fde58e552
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      libcygnet/src/shaders.cc

+ 3
- 0
libcygnet/src/shaders.cc View File

@@ -3,6 +3,7 @@
namespace Cygnet::Shaders {

const char *chunkVx = R"glsl(
precision mediump float;
uniform mat3 camera;
uniform vec2 pos;
attribute vec2 vertex;
@@ -43,6 +44,7 @@ const char *chunkFr = R"glsl(
)glsl";

const char *spriteVx = R"glsl(
precision mediump float;
#define TILE_SIZE 32.0

uniform mat3 camera;
@@ -79,6 +81,7 @@ const char *spriteFr = R"glsl(
)glsl";

const char *rectVx = R"glsl(
precision mediump float;
uniform mat3 camera;
uniform vec2 pos;
uniform vec2 size;

Loading…
Cancel
Save