projects
/
platform
/
core
/
uifw
/
dali-demo.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[dali_2.3.50] Merge branch 'devel/master'
[platform/core/uifw/dali-demo.git]
/
resources
/
shaders
/
dli_images.fsh
1
#ifdef HIGHP
2
precision highp float;
3
#else
4
precision mediump float;
5
#endif
6
7
uniform sampler2D sAlbedo;
8
9
uniform vec4 uColor;
10
11
#ifdef ALPHA_TEST
12
uniform float uAlphaThreshold;
13
#endif //ALPHA_TEST
14
15
varying vec2 vUV;
16
17
void main()
18
{
19
vec4 color = texture2D(sAlbedo, vUV.st);
20
#ifdef ALPHA_TEST
21
if (color.a <= uAlphaThreshold)
22
{
23
discard;
24
}
25
#endif
26
gl_FragColor = color * uColor;
27
}