summaryrefslogtreecommitdiff
path: root/src/lib/ector/gl/shader/include.glsl
blob: b8f8ac115ebb0126c4617633fe8ecd6724ce81ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
define(`FRAGMENT_SHADER',`
#ifdef GL_ES
# ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
# else
precision mediump float;
# endif
# ifdef SHD_EXTERNAL
extension GL_OES_EGL_image_external : require
#  define SAMPLER_EXTERNAL_OES samplerExternalOES
# endif
#else
# define SAMPLER_EXTERNAL_OES sampler2D
#endif
')

define(`VERTEX_SHADER',`
#ifdef GL_ES
precision highp float;
#endif
')