Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qopenglengineshadersource_p.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

+ 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 205 of file qopenglengineshadersource_p.h.

Referenced by QTextCursorPrivate::aboutToRemoveCell(), QQuickTextNodeEngine::addTextBlock(), QQuickListViewPrivate::adjustFirstItem(), QQuickListViewPrivate::applyInsertionChange(), QQuickSwitch::buttonChange(), QQuickSwitchDelegate::buttonChange(), QQuickScrollBarAttachedPrivate::cleanupHorizontal(), QQuickScrollBarAttachedPrivate::cleanupVertical(), QQuickScrollBar::decrease(), QQuickDialPrivate::handleMove(), QQuickSliderPrivate::handleMove(), QQuickSliderPrivate::handleRelease(), MFPlayerControl::handleStatusChanged(), QQuickScrollBar::increase(), QQuickScrollBarAttachedPrivate::initHorizontal(), QQmlPreviewPosition::initLastSavedWindowPosition(), QQuickScrollBarAttachedPrivate::initVertical(), QQuickItemViewPrivate::layout(), QQuickListViewPrivate::layoutVisibleItems(), QTextCursorPrivate::movePosition(), QQuickSwitch::nextCheckState(), QQuickSwitchDelegate::nextCheckState(), MFPlayerSession::pause(), QAndroidMediaPlayer::pause(), AVFMediaPlayer::pause(), AVFMediaPlayer::play(), QQuickMenu::popup(), QQuickItemViewPrivate::positionViewAtIndex(), QGstreamerMediaPlayer::processBusMessage(), AVFMediaPlayer::processEOS(), AVFMediaPlayer::processLoadStateChange(), QQuickItemViewPrivate::regenerate(), QQuickGridViewPrivate::repositionItemAt(), QQuickListViewPrivate::repositionItemAt(), QQuickGridViewPrivate::resetHighlightPosition(), QQuickListViewPrivate::resetHighlightPosition(), QOpenXRController::setController(), QQuickScrollIndicatorAttached::setHorizontal(), QDeclarativeGeoMapItemBase::setPositionOnMap(), QQuickMediaPlayer::setQmlPosition(), QQuickScrollIndicator::setSize(), QQuickScrollIndicatorAttached::setVertical(), AVFMediaPlayer::stop(), QMutableEventPoint::update(), QAbstractPhysicsNode::updateFromPhysicsTransform(), QDeclarativeGeoMapQuickItem::updatePolish(), QQuickDialPrivate::updatePosition(), QQuickSliderPrivate::updatePosition(), QQuickRangeSliderNodePrivate::updatePosition(), QQuickListView::viewportMoved(), and QQuickListViewPrivate::visibleItemsChanged().

Variable Documentation

◆ A

◆ b

n varying highp float b

Definition at line 203 of file qopenglengineshadersource_p.h.

◆ bradius

n uniform mediump vec3 bradius

Definition at line 202 of file qopenglengineshadersource_p.h.

◆ brushTransform

n uniform highp mat3 brushTransform

Definition at line 200 of file qopenglengineshadersource_p.h.

◆ fmp

n uniform highp vec2 fmp

◆ halfViewportSize

n uniform mediump vec2 halfViewportSize

◆ n

n

Definition at line 216 of file qopenglengineshadersource_p.h.

◆ pmvMatrix1

n attribute highp vec3 pmvMatrix1

Definition at line 196 of file qopenglengineshadersource_p.h.

◆ pmvMatrix2

n attribute highp vec3 pmvMatrix2

Definition at line 197 of file qopenglengineshadersource_p.h.

◆ pmvMatrix3

n attribute highp vec3 pmvMatrix3

Definition at line 198 of file qopenglengineshadersource_p.h.

◆ qopenglslAffinePositionWithConicalGradientBrushVertexShader

const char* const qopenglslAffinePositionWithConicalGradientBrushVertexShader = qopenglslPositionWithConicalGradientBrushVertexShader
static

◆ qopenglslAffinePositionWithLinearGradientBrushVertexShader

const char* const qopenglslAffinePositionWithLinearGradientBrushVertexShader = qopenglslPositionWithLinearGradientBrushVertexShader
static

◆ qopenglslAffinePositionWithPatternBrushVertexShader

const char* const qopenglslAffinePositionWithPatternBrushVertexShader = qopenglslPositionWithPatternBrushVertexShader
static

◆ qopenglslAffinePositionWithRadialGradientBrushVertexShader

const char* const qopenglslAffinePositionWithRadialGradientBrushVertexShader = qopenglslPositionWithRadialGradientBrushVertexShader
static

◆ qopenglslAffinePositionWithTextureBrushVertexShader

const char* const qopenglslAffinePositionWithTextureBrushVertexShader = qopenglslPositionWithTextureBrushVertexShader
static

◆ 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 337 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 68 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 177 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 302 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 329 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 294 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders(), and QOpenGLTextureGlyphCache::resizeTextureData().

◆ 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 310 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 143 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 384 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders(), and QOpenGLTextureGlyphCache::resizeTextureData().

◆ 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 351 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 368 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 359 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 376 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 24 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 41 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 31 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders(), and QOpenGLTextureGlyphCache::resizeTextureData().

◆ 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 391 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 319 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 108 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 56 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 154 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 119 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 84 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 245 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 221 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 415 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 424 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 345 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 287 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 269 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 277 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders().

◆ 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 76 of file qopenglengineshadersource_p.h.

Referenced by QOpenGLEngineSharedShaders::QOpenGLEngineSharedShaders(), and QOpenGLTextureGlyphCache::resizeTextureData().