Qt 4.8
Variables
qglengineshadersource_p.h File Reference
#include "qglengineshadermanager_p.h"

Go to the source code of this file.

Variables

static const char *const qglslAffinePositionWithConicalGradientBrushVertexShader = qglslPositionWithConicalGradientBrushVertexShader
 
static const char *const qglslAffinePositionWithLinearGradientBrushVertexShader = qglslPositionWithLinearGradientBrushVertexShader
 
static const char *const qglslAffinePositionWithPatternBrushVertexShader = qglslPositionWithPatternBrushVertexShader
 
static const char *const qglslAffinePositionWithRadialGradientBrushVertexShader = qglslPositionWithRadialGradientBrushVertexShader
 
static const char *const qglslAffinePositionWithTextureBrushVertexShader = qglslPositionWithTextureBrushVertexShader
 
static const char *const qglslComplexGeometryPositionOnlyVertexShader
 
static const char *const qglslConicalGradientBrushSrcFragmentShader
 
static const char *const qglslCustomSrcFragmentShader
 
static const char *const qglslImageSrcFragmentShader
 
static const char *const qglslImageSrcWithPatternFragmentShader
 
static const char *const qglslLinearGradientBrushSrcFragmentShader
 
static const char *const qglslMainFragmentShader
 
static const char *const qglslMainFragmentShader_C
 
static const char *const qglslMainFragmentShader_CM
 
static const char *const qglslMainFragmentShader_CMO
 
static const char *const qglslMainFragmentShader_CO
 
static const char *const qglslMainFragmentShader_ImageArrays
 
static const char *const qglslMainFragmentShader_M
 
static const char *const qglslMainFragmentShader_MO
 
static const char *const qglslMainFragmentShader_O
 
static const char *const qglslMainVertexShader
 
static const char *const qglslMainWithTexCoordsAndOpacityVertexShader
 
static const char *const qglslMainWithTexCoordsVertexShader
 
static const char *const qglslMaskFragmentShader
 
static const char *const qglslNonPremultipliedImageSrcFragmentShader
 
static const char *const qglslPatternBrushSrcFragmentShader
 
static const char *const qglslPositionOnlyVertexShader
 
static const char *const qglslPositionWithConicalGradientBrushVertexShader
 
static const char *const qglslPositionWithLinearGradientBrushVertexShader
 
static const char *const qglslPositionWithPatternBrushVertexShader
 
static const char *const qglslPositionWithRadialGradientBrushVertexShader
 
static const char *const qglslPositionWithTextureBrushVertexShader
 
static const char *const qglslRadialGradientBrushSrcFragmentShader
 
static const char *const qglslRgbMaskFragmentShaderPass1
 
static const char *const qglslRgbMaskFragmentShaderPass2
 
static const char *const qglslShockingPinkSrcFragmentShader
 
static const char *const qglslSolidBrushSrcFragmentShader
 
static const char *const qglslTextureBrushSrcFragmentShader
 
static const char *const qglslTextureBrushSrcWithPatternFragmentShader
 
static const char *const qglslUntransformedPositionVertexShader
 

Variable Documentation

◆ qglslAffinePositionWithConicalGradientBrushVertexShader

const char* const qglslAffinePositionWithConicalGradientBrushVertexShader = qglslPositionWithConicalGradientBrushVertexShader
static

◆ qglslAffinePositionWithLinearGradientBrushVertexShader

const char* const qglslAffinePositionWithLinearGradientBrushVertexShader = qglslPositionWithLinearGradientBrushVertexShader
static

◆ qglslAffinePositionWithPatternBrushVertexShader

const char* const qglslAffinePositionWithPatternBrushVertexShader = qglslPositionWithPatternBrushVertexShader
static

◆ qglslAffinePositionWithRadialGradientBrushVertexShader

const char* const qglslAffinePositionWithRadialGradientBrushVertexShader = qglslPositionWithRadialGradientBrushVertexShader
static

◆ qglslAffinePositionWithTextureBrushVertexShader

const char* const qglslAffinePositionWithTextureBrushVertexShader = qglslPositionWithTextureBrushVertexShader
static

◆ qglslComplexGeometryPositionOnlyVertexShader

const char* const qglslComplexGeometryPositionOnlyVertexShader
static
Initial value:
= "\n\
uniform highp mat3 matrix; \n\
attribute highp vec2 vertexCoordsArray; \n\
void setPosition(void) \n\
{ \n\
gl_Position = vec4(matrix * vec3(vertexCoordsArray, 1), 1);\n\
} \n"

Definition at line 110 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslConicalGradientBrushSrcFragmentShader

const char* const qglslConicalGradientBrushSrcFragmentShader
static
Initial value:
= "\n\
#define INVERSE_2PI 0.1591549430918953358 \n\
uniform sampler2D brushTexture; \n\
uniform mediump float angle; \n\
varying highp vec2 A; \n\
lowp vec4 srcPixel() \n\
{ \n\
highp float t; \n\
if (abs(A.y) == abs(A.x)) \n\
t = (atan(-A.y + 0.002, A.x) + angle) * INVERSE_2PI; \n\
else \n\
t = (atan(-A.y, A.x) + angle) * INVERSE_2PI; \n\
return texture2D(brushTexture, vec2(t - floor(t), 0.5)); \n\
}\n"

Definition at line 219 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslCustomSrcFragmentShader

const char* const qglslCustomSrcFragmentShader
static
Initial value:
= "\n\
varying highp vec2 textureCoords; \n\
uniform sampler2D imageTexture; \n\
lowp vec4 srcPixel() \n\
{ \n\
return customShader(imageTexture, textureCoords); \n\
}\n"

Definition at line 356 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslImageSrcFragmentShader

const char* const qglslImageSrcFragmentShader
static
Initial value:
= "\n\
varying highp vec2 textureCoords; \n\
uniform sampler2D imageTexture; \n\
lowp vec4 srcPixel() \n\
{ \n"
"return texture2D(imageTexture, textureCoords); \n"
"}\n"

Definition at line 348 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders(), and QGLTextureGlyphCache::resizeTextureData().

◆ qglslImageSrcWithPatternFragmentShader

const char* const qglslImageSrcWithPatternFragmentShader
static
Initial value:
= "\n\
varying highp vec2 textureCoords; \n\
uniform lowp vec4 patternColor; \n\
uniform sampler2D imageTexture; \n\
lowp vec4 srcPixel() \n\
{ \n\
return patternColor * (1.0 - texture2D(imageTexture, textureCoords).r); \n\
}\n"

Definition at line 364 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslLinearGradientBrushSrcFragmentShader

const char* const qglslLinearGradientBrushSrcFragmentShader
static
Initial value:
= "\n\
uniform sampler2D brushTexture; \n\
varying mediump float index; \n\
lowp vec4 srcPixel() \n\
{ \n\
mediump vec2 val = vec2(index, 0.5); \n\
return texture2D(brushTexture, val); \n\
}\n"

Definition at line 185 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader

const char* const qglslMainFragmentShader
static
Initial value:
= "\n\
lowp vec4 srcPixel(); \n\
void main() \n\
{ \n\
gl_FragColor = srcPixel(); \n\
}\n"

Definition at line 458 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders(), and QGLTextureGlyphCache::resizeTextureData().

◆ qglslMainFragmentShader_C

const char* const qglslMainFragmentShader_C
static
Initial value:
= "\n\
lowp vec4 srcPixel(); \n\
lowp vec4 compose(lowp vec4); \n\
void main() \n\
{ \n\
gl_FragColor = compose(srcPixel()); \n\
}\n"

Definition at line 442 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader_CM

const char* const qglslMainFragmentShader_CM
static
Initial value:
= "\n\
lowp vec4 srcPixel(); \n\
lowp vec4 applyMask(lowp vec4); \n\
lowp vec4 compose(lowp vec4); \n\
void main() \n\
{ \n\
gl_FragColor = applyMask(compose(srcPixel())); \n\
}\n"

Definition at line 407 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader_CMO

const char* const qglslMainFragmentShader_CMO
static
Initial value:
= "\n\
uniform lowp float globalOpacity; \n\
lowp vec4 srcPixel(); \n\
lowp vec4 applyMask(lowp vec4); \n\
lowp vec4 compose(lowp vec4); \n\
void main() \n\
{ \n\
gl_FragColor = applyMask(compose(srcPixel()*globalOpacity))); \n\
}\n"

Definition at line 397 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader_CO

const char* const qglslMainFragmentShader_CO
static
Initial value:
= "\n\
uniform lowp float globalOpacity; \n\
lowp vec4 srcPixel(); \n\
lowp vec4 compose(lowp vec4); \n\
void main() \n\
{ \n\
gl_FragColor = compose(srcPixel()*globalOpacity); \n\
}\n"

Definition at line 433 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader_ImageArrays

const char* const qglslMainFragmentShader_ImageArrays
static
Initial value:
= "\n\
varying lowp float opacity; \n\
lowp vec4 srcPixel(); \n\
void main() \n\
{ \n\
gl_FragColor = srcPixel() * opacity; \n\
}\n"

Definition at line 389 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader_M

const char* const qglslMainFragmentShader_M
static
Initial value:
= "\n\
lowp vec4 srcPixel(); \n\
lowp vec4 applyMask(lowp vec4); \n\
void main() \n\
{ \n\
gl_FragColor = applyMask(srcPixel()); \n\
}\n"

Definition at line 425 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader_MO

const char* const qglslMainFragmentShader_MO
static
Initial value:
= "\n\
uniform lowp float globalOpacity; \n\
lowp vec4 srcPixel(); \n\
lowp vec4 applyMask(lowp vec4); \n\
void main() \n\
{ \n\
gl_FragColor = applyMask(srcPixel()*globalOpacity); \n\
}\n"

Definition at line 416 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainFragmentShader_O

const char* const qglslMainFragmentShader_O
static
Initial value:
= "\n\
uniform lowp float globalOpacity; \n\
lowp vec4 srcPixel(); \n\
void main() \n\
{ \n\
gl_FragColor = srcPixel()*globalOpacity; \n\
}\n"

Definition at line 450 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainVertexShader

const char* const qglslMainVertexShader
static
Initial value:
= "\n\
void setPosition(); \n\
void main(void) \n\
{ \n\
setPosition(); \n\
}\n"

Definition at line 66 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainWithTexCoordsAndOpacityVertexShader

const char* const qglslMainWithTexCoordsAndOpacityVertexShader
static
Initial value:
= "\n\
attribute highp vec2 textureCoordArray; \n\
attribute lowp float opacityArray; \n\
varying highp vec2 textureCoords; \n\
varying lowp float opacity; \n\
void setPosition(); \n\
void main(void) \n\
{ \n\
setPosition(); \n\
textureCoords = textureCoordArray; \n\
opacity = opacityArray; \n\
}\n"

Definition at line 83 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslMainWithTexCoordsVertexShader

const char* const qglslMainWithTexCoordsVertexShader
static
Initial value:
= "\n\
attribute highp vec2 textureCoordArray; \n\
varying highp vec2 textureCoords; \n\
void setPosition(); \n\
void main(void) \n\
{ \n\
setPosition(); \n\
textureCoords = textureCoordArray; \n\
}\n"

Definition at line 73 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders(), and QGLTextureGlyphCache::resizeTextureData().

◆ qglslMaskFragmentShader

const char* const qglslMaskFragmentShader
static
Initial value:
= "\n\
varying highp vec2 textureCoords;\n\
uniform sampler2D maskTexture;\n\
lowp vec4 applyMask(lowp vec4 src) \n\
{\n\
lowp vec4 mask = texture2D(maskTexture, textureCoords); \n\
return src * mask.a; \n\
}\n"

Definition at line 465 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslNonPremultipliedImageSrcFragmentShader

const char* const qglslNonPremultipliedImageSrcFragmentShader
static
Initial value:
= "\n\
varying highp vec2 textureCoords; \n\
uniform sampler2D imageTexture; \n\
lowp vec4 srcPixel() \n\
{ \n\
lowp vec4 sample = texture2D(imageTexture, textureCoords); \n\
sample.rgb = sample.rgb * sample.a; \n\
return sample; \n\
}\n"

Definition at line 373 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslPatternBrushSrcFragmentShader

const char* const qglslPatternBrushSrcFragmentShader
static
Initial value:
= "\n\
uniform sampler2D brushTexture; \n\
uniform lowp vec4 patternColor; \n\
varying highp vec2 patternTexCoords;\n\
lowp vec4 srcPixel() \n\
{ \n\
return patternColor * (1.0 - texture2D(brushTexture, patternTexCoords).r); \n\
}\n"

Definition at line 150 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslPositionOnlyVertexShader

const char* const qglslPositionOnlyVertexShader
static
Initial value:
= "\n\
attribute highp vec2 vertexCoordsArray; \n\
attribute highp vec3 pmvMatrix1; \n\
attribute highp vec3 pmvMatrix2; \n\
attribute highp vec3 pmvMatrix3; \n\
void setPosition(void) \n\
{ \n\
highp mat3 pmvMatrix = mat3(pmvMatrix1, pmvMatrix2, pmvMatrix3); \n\
vec3 transformedPos = pmvMatrix * vec3(vertexCoordsArray.xy, 1.0); \n\
gl_Position = vec4(transformedPos.xy, 0.0, transformedPos.z); \n\
}\n"

Definition at line 98 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslPositionWithConicalGradientBrushVertexShader

const char* const qglslPositionWithConicalGradientBrushVertexShader
static
Initial value:
= "\n\
attribute highp vec2 vertexCoordsArray; \n\
attribute highp vec3 pmvMatrix1; \n\
attribute highp vec3 pmvMatrix2; \n\
attribute highp vec3 pmvMatrix3; \n\
uniform mediump vec2 halfViewportSize; \n\
uniform highp mat3 brushTransform; \n\
varying highp vec2 A; \n\
void setPosition(void) \n\
{ \n\
highp mat3 pmvMatrix = mat3(pmvMatrix1, pmvMatrix2, pmvMatrix3); \n\
vec3 transformedPos = pmvMatrix * vec3(vertexCoordsArray.xy, 1.0); \n\
gl_Position.xy = transformedPos.xy / transformedPos.z; \n\
mediump vec2 viewportCoords = (gl_Position.xy + 1.0) * halfViewportSize; \n\
mediump vec3 hTexCoords = brushTransform * vec3(viewportCoords, 1); \n\
mediump float invertedHTexCoordsZ = 1.0 / hTexCoords.z; \n\
gl_Position = vec4(gl_Position.xy * invertedHTexCoordsZ, 0.0, invertedHTexCoordsZ); \n\
A = hTexCoords.xy * invertedHTexCoordsZ; \n\
}\n"

Definition at line 196 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslPositionWithLinearGradientBrushVertexShader

const char* const qglslPositionWithLinearGradientBrushVertexShader
static
Initial value:
= "\n\
attribute highp vec2 vertexCoordsArray; \n\
attribute highp vec3 pmvMatrix1; \n\
attribute highp vec3 pmvMatrix2; \n\
attribute highp vec3 pmvMatrix3; \n\
uniform mediump vec2 halfViewportSize; \n\
uniform highp vec3 linearData; \n\
uniform highp mat3 brushTransform; \n\
varying mediump float index; \n\
void setPosition() \n\
{ \n\
highp mat3 pmvMatrix = mat3(pmvMatrix1, pmvMatrix2, pmvMatrix3); \n\
vec3 transformedPos = pmvMatrix * vec3(vertexCoordsArray.xy, 1.0); \n\
gl_Position.xy = transformedPos.xy / transformedPos.z; \n\
mediump vec2 viewportCoords = (gl_Position.xy + 1.0) * halfViewportSize; \n\
mediump vec3 hTexCoords = brushTransform * vec3(viewportCoords, 1); \n\
mediump float invertedHTexCoordsZ = 1.0 / hTexCoords.z; \n\
gl_Position = vec4(gl_Position.xy * invertedHTexCoordsZ, 0.0, invertedHTexCoordsZ); \n\
index = (dot(linearData.xy, hTexCoords.xy) * linearData.z) * invertedHTexCoordsZ; \n\
}\n"

Definition at line 161 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslPositionWithPatternBrushVertexShader

const char* const qglslPositionWithPatternBrushVertexShader
static
Initial value:
= "\n\
attribute highp vec2 vertexCoordsArray; \n\
attribute highp vec3 pmvMatrix1; \n\
attribute highp vec3 pmvMatrix2; \n\
attribute highp vec3 pmvMatrix3; \n\
uniform mediump vec2 halfViewportSize; \n\
uniform highp vec2 invertedTextureSize; \n\
uniform highp mat3 brushTransform; \n\
varying highp vec2 patternTexCoords; \n\
void setPosition(void) \n\
{ \n\
highp mat3 pmvMatrix = mat3(pmvMatrix1, pmvMatrix2, pmvMatrix3); \n\
vec3 transformedPos = pmvMatrix * vec3(vertexCoordsArray.xy, 1.0); \n\
gl_Position.xy = transformedPos.xy / transformedPos.z; \n\
mediump vec2 viewportCoords = (gl_Position.xy + 1.0) * halfViewportSize; \n\
mediump vec3 hTexCoords = brushTransform * vec3(viewportCoords, 1.0); \n\
mediump float invertedHTexCoordsZ = 1.0 / hTexCoords.z; \n\
gl_Position = vec4(gl_Position.xy * invertedHTexCoordsZ, 0.0, invertedHTexCoordsZ); \n\
patternTexCoords.xy = (hTexCoords.xy * 0.125) * invertedHTexCoordsZ; \n\
}\n"

Definition at line 126 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslPositionWithRadialGradientBrushVertexShader

const char* const qglslPositionWithRadialGradientBrushVertexShader
static
Initial value:
= "\n\
attribute highp vec2 vertexCoordsArray;\n\
attribute highp vec3 pmvMatrix1; \n\
attribute highp vec3 pmvMatrix2; \n\
attribute highp vec3 pmvMatrix3; \n\
uniform mediump vec2 halfViewportSize; \n\
uniform highp mat3 brushTransform; \n\
uniform highp vec2 fmp; \n\
uniform highp vec3 bradius; \n\
varying highp float b; \n\
varying highp vec2 A; \n\
void setPosition(void) \n\
{\n\
highp mat3 pmvMatrix = mat3(pmvMatrix1, pmvMatrix2, pmvMatrix3); \n\
vec3 transformedPos = pmvMatrix * vec3(vertexCoordsArray.xy, 1.0); \n\
gl_Position.xy = transformedPos.xy / transformedPos.z; \n\
mediump vec2 viewportCoords = (gl_Position.xy + 1.0) * halfViewportSize; \n\
mediump vec3 hTexCoords = brushTransform * vec3(viewportCoords, 1); \n\
mediump float invertedHTexCoordsZ = 1.0 / hTexCoords.z; \n\
gl_Position = vec4(gl_Position.xy * invertedHTexCoordsZ, 0.0, invertedHTexCoordsZ); \n\
A = hTexCoords.xy * invertedHTexCoordsZ; \n\
b = bradius.x + 2.0 * dot(A, fmp); \n\
}\n"

Definition at line 236 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslPositionWithTextureBrushVertexShader

const char* const qglslPositionWithTextureBrushVertexShader
static
Initial value:
= "\n\
attribute highp vec2 vertexCoordsArray; \n\
attribute highp vec3 pmvMatrix1; \n\
attribute highp vec3 pmvMatrix2; \n\
attribute highp vec3 pmvMatrix3; \n\
uniform mediump vec2 halfViewportSize; \n\
uniform highp vec2 invertedTextureSize; \n\
uniform highp mat3 brushTransform; \n\
varying highp vec2 brushTextureCoords; \n\
void setPosition(void) \n\
{ \n\
highp mat3 pmvMatrix = mat3(pmvMatrix1, pmvMatrix2, pmvMatrix3); \n\
vec3 transformedPos = pmvMatrix * vec3(vertexCoordsArray.xy, 1.0); \n\
gl_Position.xy = transformedPos.xy / transformedPos.z; \n\
mediump vec2 viewportCoords = (gl_Position.xy + 1.0) * halfViewportSize; \n\
mediump vec3 hTexCoords = brushTransform * vec3(viewportCoords, 1); \n\
mediump float invertedHTexCoordsZ = 1.0 / hTexCoords.z; \n\
gl_Position = vec4(gl_Position.xy * invertedHTexCoordsZ, 0.0, invertedHTexCoordsZ); \n\
brushTextureCoords.xy = (hTexCoords.xy * invertedTextureSize) * gl_Position.w; \n\
}\n"

Definition at line 287 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslRadialGradientBrushSrcFragmentShader

const char* const qglslRadialGradientBrushSrcFragmentShader
static
Initial value:
= "\n\
uniform sampler2D brushTexture; \n\
uniform highp float fmp2_m_radius2; \n\
uniform highp float inverse_2_fmp2_m_radius2; \n\
uniform highp float sqrfr; \n\
varying highp float b; \n\
varying highp vec2 A; \n\
uniform highp vec3 bradius; \n\
lowp vec4 srcPixel() \n\
{ \n\
highp float c = sqrfr-dot(A, A); \n\
highp float det = b*b - 4.0*fmp2_m_radius2*c; \n\
lowp vec4 result = vec4(0.0); \n\
if (det >= 0.0) { \n\
highp float detSqrt = sqrt(det); \n\
highp float w = max((-b - detSqrt) * inverse_2_fmp2_m_radius2, (-b + detSqrt) * inverse_2_fmp2_m_radius2); \n\
if (bradius.y + w * bradius.z >= 0.0) \n\
result = texture2D(brushTexture, vec2(w, 0.5)); \n\
} \n\
return result; \n\
}\n"

Definition at line 263 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslRgbMaskFragmentShaderPass1

const char* const qglslRgbMaskFragmentShaderPass1
static
Initial value:
= "\n\
varying highp vec2 textureCoords;\n\
uniform sampler2D maskTexture;\n\
lowp vec4 applyMask(lowp vec4 src) \n\
{ \n\
lowp vec4 mask = texture2D(maskTexture, textureCoords); \n\
return src.a * mask; \n\
}\n"

Definition at line 489 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslRgbMaskFragmentShaderPass2

const char* const qglslRgbMaskFragmentShaderPass2
static
Initial value:
= "\n\
varying highp vec2 textureCoords;\n\
uniform sampler2D maskTexture;\n\
lowp vec4 applyMask(lowp vec4 src) \n\
{ \n\
lowp vec4 mask = texture2D(maskTexture, textureCoords); \n\
return src * mask; \n\
}\n"

Definition at line 498 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslShockingPinkSrcFragmentShader

const char* const qglslShockingPinkSrcFragmentShader
static
Initial value:
= "\n\
lowp vec4 srcPixel() \n\
{ \n\
return vec4(0.98, 0.06, 0.75, 1.0); \n\
}\n"

Definition at line 383 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslSolidBrushSrcFragmentShader

const char* const qglslSolidBrushSrcFragmentShader
static
Initial value:
= "\n\
uniform lowp vec4 fragmentColor; \n\
lowp vec4 srcPixel() \n\
{ \n\
return fragmentColor; \n\
}\n"

Definition at line 341 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslTextureBrushSrcFragmentShader

const char* const qglslTextureBrushSrcFragmentShader
static
Initial value:
= "\n\
varying highp vec2 brushTextureCoords; \n\
uniform sampler2D brushTexture; \n\
lowp vec4 srcPixel() \n\
{ \n\
return texture2D(brushTexture, brushTextureCoords); \n\
}\n"

Definition at line 322 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslTextureBrushSrcWithPatternFragmentShader

const char* const qglslTextureBrushSrcWithPatternFragmentShader
static
Initial value:
= "\n\
varying highp vec2 brushTextureCoords; \n\
uniform lowp vec4 patternColor; \n\
uniform sampler2D brushTexture; \n\
lowp vec4 srcPixel() \n\
{ \n\
return patternColor * (1.0 - texture2D(brushTexture, brushTextureCoords).r); \n\
}\n"

Definition at line 331 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders().

◆ qglslUntransformedPositionVertexShader

const char* const qglslUntransformedPositionVertexShader
static
Initial value:
= "\n\
attribute highp vec4 vertexCoordsArray; \n\
void setPosition(void) \n\
{ \n\
gl_Position = vertexCoordsArray; \n\
}\n"

Definition at line 118 of file qglengineshadersource_p.h.

Referenced by QGLEngineSharedShaders::QGLEngineSharedShaders(), and QGLTextureGlyphCache::resizeTextureData().