mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
graphics: No need to specify precision on vertex shaders (highp is default)
This commit is contained in:
parent
d46d9ac7c2
commit
84a7787ac9
@ -27,19 +27,11 @@ func shader(id shaderId) string {
|
|||||||
|
|
||||||
var shaders = map[shaderId]string{
|
var shaders = map[shaderId]string{
|
||||||
shaderVertexModelview: `
|
shaderVertexModelview: `
|
||||||
#if defined(GL_ES)
|
uniform mat4 projection_matrix;
|
||||||
precision highp float;
|
attribute vec2 vertex;
|
||||||
#else
|
attribute vec2 tex_coord;
|
||||||
#define lowp
|
attribute vec4 geo_matrix_body;
|
||||||
#define mediump
|
attribute vec2 geo_matrix_translation;
|
||||||
#define highp
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uniform highp mat4 projection_matrix;
|
|
||||||
attribute highp vec2 vertex;
|
|
||||||
attribute highp vec2 tex_coord;
|
|
||||||
attribute highp vec4 geo_matrix_body;
|
|
||||||
attribute highp vec2 geo_matrix_translation;
|
|
||||||
varying vec2 vertex_out_tex_coord;
|
varying vec2 vertex_out_tex_coord;
|
||||||
|
|
||||||
void main(void) {
|
void main(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user