Переглянути джерело

precision mediummp float

feature/replace-renderer
Martin Dørum 3 роки тому
джерело
коміт
5fde58e552
1 змінених файлів з 3 додано та 0 видалено
  1. 3
    0
      libcygnet/src/shaders.cc

+ 3
- 0
libcygnet/src/shaders.cc Переглянути файл

@@ -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;

Завантаження…
Відмінити
Зберегти