Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qopenglengineshadersource_p.h File Reference

(abdf62f63e5a5cc26c950933831049229efd74a3)

Include dependency graph for qopenglengineshadersource_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

n void setPosition (void) \n\

Variables

static QT_BEGIN_NAMESPACE const char *const qopenglslMainVertexShader
static const char *const qopenglslMainWithTexCoordsVertexShader
static const char *const qopenglslMainWithTexCoordsAndOpacityVertexShader
static const char *const qopenglslPositionOnlyVertexShader
static const char *const qopenglslComplexGeometryPositionOnlyVertexShader
static const char *const qopenglslUntransformedPositionVertexShader
static const char *const qopenglslPositionWithPatternBrushVertexShader
static const char *const qopenglslAffinePositionWithPatternBrushVertexShader = qopenglslPositionWithPatternBrushVertexShader
static const char *const qopenglslPatternBrushSrcFragmentShader
static const char *const qopenglslPositionWithLinearGradientBrushVertexShader
static const char *const qopenglslAffinePositionWithLinearGradientBrushVertexShader = qopenglslPositionWithLinearGradientBrushVertexShader
static const char *const qopenglslLinearGradientBrushSrcFragmentShader
static const char *const qopenglslPositionWithConicalGradientBrushVertexShader
static const char *const qopenglslAffinePositionWithConicalGradientBrushVertexShader = qopenglslPositionWithConicalGradientBrushVertexShader
static const char *const qopenglslConicalGradientBrushSrcFragmentShader
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 mediump vec3 bradius
n varying highp float b
n varying highp vec2 A
 n
static const char *const qopenglslAffinePositionWithRadialGradientBrushVertexShader = qopenglslPositionWithRadialGradientBrushVertexShader
static const char *const qopenglslRadialGradientBrushSrcFragmentShader
static const char *const qopenglslPositionWithTextureBrushVertexShader
static const char *const qopenglslAffinePositionWithTextureBrushVertexShader = qopenglslPositionWithTextureBrushVertexShader
static const char *const qopenglslTextureBrushSrcFragmentShader
static const char *const qopenglslTextureBrushSrcWithPatternFragmentShader
static const char *const qopenglslSolidBrushSrcFragmentShader
static const char *const qopenglslImageSrcFragmentShader
static const char *const qopenglslCustomSrcFragmentShader
static const char *const qopenglslImageSrcWithPatternFragmentShader
static const char *const qopenglslNonPremultipliedImageSrcFragmentShader
static const char *const qopenglslGrayscaleImageSrcFragmentShader
static const char *const qopenglslAlphaImageSrcFragmentShader
static const char *const qopenglslShockingPinkSrcFragmentShader
static const char *const qopenglslMainFragmentShader_ImageArrays
static const char *const qopenglslMainFragmentShader_MO
static const char *const qopenglslMainFragmentShader_M
static const char *const qopenglslMainFragmentShader_O
static const char *const qopenglslMainFragmentShader
static const char *const qopenglslMaskFragmentShader
static const char *const qopenglslRgbMaskFragmentShaderPass1
static const char *const qopenglslRgbMaskFragmentShaderPass2

Function Documentation

◆ setPosition()

n void setPosition ( void )

Definition at line 206 of file qopenglengineshadersource_p.h.

Variable Documentation

◆ A

n varying highp vec2 A

Definition at line 205 of file qopenglengineshadersource_p.h.

◆ b

n varying highp float b

Definition at line 204 of file qopenglengineshadersource_p.h.

◆ bradius

n uniform mediump vec3 bradius

Definition at line 203 of file qopenglengineshadersource_p.h.

◆ brushTransform

n uniform highp mat3 brushTransform

Definition at line 201 of file qopenglengineshadersource_p.h.

◆ fmp

n uniform highp vec2 fmp

Definition at line 202 of file qopenglengineshadersource_p.h.

◆ halfViewportSize

n uniform mediump vec2 halfViewportSize

Definition at line 200 of file qopenglengineshadersource_p.h.

◆ n

n

Definition at line 217 of file qopenglengineshadersource_p.h.

◆ pmvMatrix1

n attribute highp vec3 pmvMatrix1

Definition at line 197 of file qopenglengineshadersource_p.h.

◆ pmvMatrix2

n attribute highp vec3 pmvMatrix2

Definition at line 198 of file qopenglengineshadersource_p.h.

◆ pmvMatrix3

n attribute highp vec3 pmvMatrix3

Definition at line 199 of file qopenglengineshadersource_p.h.

◆ qopenglslAffinePositionWithConicalGradientBrushVertexShader

const char* const qopenglslAffinePositionWithConicalGradientBrushVertexShader = qopenglslPositionWithConicalGradientBrushVertexShader
static

Definition at line 175 of file qopenglengineshadersource_p.h.

◆ qopenglslAffinePositionWithLinearGradientBrushVertexShader

const char* const qopenglslAffinePositionWithLinearGradientBrushVertexShader = qopenglslPositionWithLinearGradientBrushVertexShader
static

Definition at line 141 of file qopenglengineshadersource_p.h.

◆ qopenglslAffinePositionWithPatternBrushVertexShader

const char* const qopenglslAffinePositionWithPatternBrushVertexShader = qopenglslPositionWithPatternBrushVertexShader
static

Definition at line 106 of file qopenglengineshadersource_p.h.

◆ qopenglslAffinePositionWithRadialGradientBrushVertexShader

const char* const qopenglslAffinePositionWithRadialGradientBrushVertexShader = qopenglslPositionWithRadialGradientBrushVertexShader
static

Definition at line 219 of file qopenglengineshadersource_p.h.

◆ qopenglslAffinePositionWithTextureBrushVertexShader

const char* const qopenglslAffinePositionWithTextureBrushVertexShader = qopenglslPositionWithTextureBrushVertexShader
static

Definition at line 267 of file qopenglengineshadersource_p.h.

◆ qopenglslAlphaImageSrcFragmentShader

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

Definition at line 338 of file qopenglengineshadersource_p.h.

◆ qopenglslComplexGeometryPositionOnlyVertexShader

const char* const qopenglslComplexGeometryPositionOnlyVertexShader
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 69 of file qopenglengineshadersource_p.h.

◆ qopenglslConicalGradientBrushSrcFragmentShader

const char* const qopenglslConicalGradientBrushSrcFragmentShader
static
Initial value:
= "\n\
// Radial Gradient Brush
static const char* const qopenglslPositionWithRadialGradientBrushVertexShader = "\n\
attribute highp vec2 vertexCoordsArray

Definition at line 178 of file qopenglengineshadersource_p.h.

◆ qopenglslCustomSrcFragmentShader

const char* const qopenglslCustomSrcFragmentShader
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 303 of file qopenglengineshadersource_p.h.

◆ qopenglslGrayscaleImageSrcFragmentShader

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

Definition at line 330 of file qopenglengineshadersource_p.h.

◆ qopenglslImageSrcFragmentShader

const char* const qopenglslImageSrcFragmentShader
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 295 of file qopenglengineshadersource_p.h.

◆ qopenglslImageSrcWithPatternFragmentShader

const char* const qopenglslImageSrcWithPatternFragmentShader
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 311 of file qopenglengineshadersource_p.h.

◆ qopenglslLinearGradientBrushSrcFragmentShader

const char* const qopenglslLinearGradientBrushSrcFragmentShader
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 144 of file qopenglengineshadersource_p.h.

◆ qopenglslMainFragmentShader

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

Definition at line 385 of file qopenglengineshadersource_p.h.

◆ qopenglslMainFragmentShader_ImageArrays

const char* const qopenglslMainFragmentShader_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 352 of file qopenglengineshadersource_p.h.

◆ qopenglslMainFragmentShader_M

const char* const qopenglslMainFragmentShader_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 369 of file qopenglengineshadersource_p.h.

◆ qopenglslMainFragmentShader_MO

const char* const qopenglslMainFragmentShader_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 360 of file qopenglengineshadersource_p.h.

◆ qopenglslMainFragmentShader_O

const char* const qopenglslMainFragmentShader_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 377 of file qopenglengineshadersource_p.h.

◆ qopenglslMainVertexShader

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

Definition at line 25 of file qopenglengineshadersource_p.h.

◆ qopenglslMainWithTexCoordsAndOpacityVertexShader

const char* const qopenglslMainWithTexCoordsAndOpacityVertexShader
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 42 of file qopenglengineshadersource_p.h.

◆ qopenglslMainWithTexCoordsVertexShader

const char* const qopenglslMainWithTexCoordsVertexShader
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 32 of file qopenglengineshadersource_p.h.

◆ qopenglslMaskFragmentShader

const char* const qopenglslMaskFragmentShader
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 392 of file qopenglengineshadersource_p.h.

◆ qopenglslNonPremultipliedImageSrcFragmentShader

const char* const qopenglslNonPremultipliedImageSrcFragmentShader
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 320 of file qopenglengineshadersource_p.h.

◆ qopenglslPatternBrushSrcFragmentShader

const char* const qopenglslPatternBrushSrcFragmentShader
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 109 of file qopenglengineshadersource_p.h.

◆ qopenglslPositionOnlyVertexShader

const char* const qopenglslPositionOnlyVertexShader
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 57 of file qopenglengineshadersource_p.h.

◆ qopenglslPositionWithConicalGradientBrushVertexShader

const char* const qopenglslPositionWithConicalGradientBrushVertexShader
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 155 of file qopenglengineshadersource_p.h.

◆ qopenglslPositionWithLinearGradientBrushVertexShader

const char* const qopenglslPositionWithLinearGradientBrushVertexShader
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 120 of file qopenglengineshadersource_p.h.

◆ qopenglslPositionWithPatternBrushVertexShader

const char* const qopenglslPositionWithPatternBrushVertexShader
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 85 of file qopenglengineshadersource_p.h.

◆ qopenglslPositionWithTextureBrushVertexShader

const char* const qopenglslPositionWithTextureBrushVertexShader
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 246 of file qopenglengineshadersource_p.h.

◆ qopenglslRadialGradientBrushSrcFragmentShader

const char* const qopenglslRadialGradientBrushSrcFragmentShader
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 mediump 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 222 of file qopenglengineshadersource_p.h.

◆ qopenglslRgbMaskFragmentShaderPass1

const char* const qopenglslRgbMaskFragmentShaderPass1
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 416 of file qopenglengineshadersource_p.h.

◆ qopenglslRgbMaskFragmentShaderPass2

const char* const qopenglslRgbMaskFragmentShaderPass2
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 425 of file qopenglengineshadersource_p.h.

◆ qopenglslShockingPinkSrcFragmentShader

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

Definition at line 346 of file qopenglengineshadersource_p.h.

◆ qopenglslSolidBrushSrcFragmentShader

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

Definition at line 288 of file qopenglengineshadersource_p.h.

◆ qopenglslTextureBrushSrcFragmentShader

const char* const qopenglslTextureBrushSrcFragmentShader
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 270 of file qopenglengineshadersource_p.h.

◆ qopenglslTextureBrushSrcWithPatternFragmentShader

const char* const qopenglslTextureBrushSrcWithPatternFragmentShader
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 278 of file qopenglengineshadersource_p.h.

◆ qopenglslUntransformedPositionVertexShader

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

Definition at line 77 of file qopenglengineshadersource_p.h.