mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
graphics: Bug fix: Need to specify default precisions (#390)
This commit is contained in:
parent
3bfb5054af
commit
85d39699d3
@ -38,6 +38,10 @@ func shader(id shaderId) string {
|
||||
|
||||
var shaders = map[shaderId]string{
|
||||
shaderVertexModelview: `
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
|
||||
uniform highp mat4 projection_matrix;
|
||||
attribute highp vec2 vertex;
|
||||
attribute highp vec2 tex_coord;
|
||||
@ -57,6 +61,10 @@ void main(void) {
|
||||
}
|
||||
`,
|
||||
shaderFragmentTexture: `
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
uniform lowp sampler2D texture;
|
||||
uniform lowp mat4 color_matrix;
|
||||
uniform lowp vec4 color_matrix_translation;
|
||||
|
Loading…
Reference in New Issue
Block a user