summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qglengineshadersource_p.h
diff options
context:
space:
mode:
authorTom Cooksey <thomas.cooksey@nokia.com>2009-04-17 11:18:21 +0200
committerTom Cooksey <thomas.cooksey@nokia.com>2009-04-17 11:18:21 +0200
commit534f2575a19422cff06e27b46f65c6630da6ee7f (patch)
treef1dbfca903ea539808a8a52385c1b45dbfbef140 /src/opengl/gl2paintengineex/qglengineshadersource_p.h
parent0b37db60b856fd146727eb621c5447aff09ffc5a (diff)
Add a "shocking pink" shader for rendering into stencil buff
If you see shocking pink in the rendering output, it's probably because the "simple" shader is in use but color writes have somehow been enabled. :-)
Diffstat (limited to 'src/opengl/gl2paintengineex/qglengineshadersource_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qglengineshadersource_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadersource_p.h b/src/opengl/gl2paintengineex/qglengineshadersource_p.h
index 3aa1a36a06..d605b011ed 100644
--- a/src/opengl/gl2paintengineex/qglengineshadersource_p.h
+++ b/src/opengl/gl2paintengineex/qglengineshadersource_p.h
@@ -288,6 +288,11 @@ static const char* const qglslNonPremultipliedImageSrcFragmentShader = "\
return sample; \
}";
+static const char* const qglslShockingPinkSrcFragmentShader = "\
+ lowp vec4 srcPixel() { \
+ return lowp vec4(0.98, 0.06, 0.75, 1.0); \
+ }";
+
static const char* const qglslMainFragmentShader_CMO = "\
uniform lowp float globalOpacity; \