Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
frameworks
/
base
/
d596d5115c0f568472daec4f094807bcd39d1f0f
/
.
/
libs
/
hwui
/
shaders
/
drawLinearGradient.frag
blob: 469c66255b8690fed3f61d3bd54688f5e64d6280 [
file
] [
log
] [
blame
]
SHADER_SOURCE
(
gDrawLinearGradientFragmentShader
,
precision mediump
float
;
varying
float
index
;
uniform vec4 color
;
uniform sampler2D sampler
;
void
main
(
void
)
{
gl_FragColor
=
texture2D
(
sampler
,
vec2
(
index
,
0.5
))
*
color
;
}
);