[gegl/gsoc2009-gpu] gegl:brightness-contrast op: code cleanup
- From: Jerson Michael Perpetua <jperpetua src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl/gsoc2009-gpu] gegl:brightness-contrast op: code cleanup
- Date: Sun, 23 Aug 2009 14:32:45 +0000 (UTC)
commit b35ef82359e2b70fe26327fe124a25031c669290
Author: Jerson Michael Perpetua <jersonperpetua gmail com>
Date: Sun Aug 23 22:28:02 2009 +0800
gegl:brightness-contrast op: code cleanup
operations/common/brightness-contrast.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/operations/common/brightness-contrast.c b/operations/common/brightness-contrast.c
index cbdeaab..0b0fa98 100644
--- a/operations/common/brightness-contrast.c
+++ b/operations/common/brightness-contrast.c
@@ -61,16 +61,16 @@ gegl_chant_double (brightness, _("Brightness"), -3.0, 3.0, 0.0,
#include "gegl-gpu-types.h"
#include "gegl-gpu-init.h"
-static const char* shader_program_str = " \
-uniform sampler2DRect pixels; \
-uniform float brightness, contrast; \
- \
-void main() \
-{ \
- vec4 pixel = texture2DRect(pixels, gl_TexCoord[0].st); \
- vec3 color = (pixel.rgb - 0.5) * contrast + brightness + 0.5; \
- gl_FragColor = vec4(color, pixel.a); \
-} ";
+static const char* shader_program_str = " \
+uniform sampler2DRect pixels; \
+uniform float brightness, contrast; \
+ \
+void main() \
+{ \
+ vec4 pixel = texture2DRect (pixels, gl_TexCoord[0].st); \
+ vec3 color = (pixel.rgb - 0.5) * contrast + brightness + 0.5; \
+ gl_FragColor = vec4 (color, pixel.a); \
+} ";
static GLuint shader_program = 0;
static GLuint pixels_param;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]