diff options
Diffstat (limited to 'chart2/opengl/textFragmentShader.glsl')
-rw-r--r-- | chart2/opengl/textFragmentShader.glsl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chart2/opengl/textFragmentShader.glsl b/chart2/opengl/textFragmentShader.glsl index 1c3af260c9a4..16be8c6ae0f0 100644 --- a/chart2/opengl/textFragmentShader.glsl +++ b/chart2/opengl/textFragmentShader.glsl @@ -11,10 +11,13 @@ uniform sampler2D TextTex; in vec2 vTexCoord; +out vec4 actualColor; + + void main() { - vec3 color = texture2D(TextTex, vTexCoord).rgb; - gl_FragColor = vec4(color, 1.0 - color.r); + vec3 color = texture(TextTex, vTexCoord).rgb; + actualColor = vec4(color, 1.0 - color.r); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |