Skip to content
Snippets Groups Projects
Commit 6fda7af5 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Jean-Baptiste Kempf
Browse files

qml: enable culling in shader effects

parent 5be2ef66
No related branches found
No related tags found
1 merge request!2665qml: enable culling in shader effects
Pipeline #271541 passed with stages
in 34 minutes and 59 seconds
......@@ -80,6 +80,7 @@ Item {
anchors.fill: parent
visible: true
blending: false
cullMode: ShaderEffect.BackFaceCulling
fragmentShader: "qrc:///player/PlayerBlurredBackground.frag"
}
......
......@@ -191,6 +191,8 @@ ListView {
// can not be placed in the atlas.
supportsAtlasTextures: false
// cullMode: ShaderEffect.BackFaceCulling // Does not work sometimes. Qt bug?
vertexShader: " uniform highp mat4 qt_Matrix;
attribute highp vec4 qt_Vertex;
......
......@@ -78,6 +78,8 @@ Item {
readonly property real noiseStrength: effect.noiseStrength
readonly property real exclusionStrength: effect.exclusionStrength
cullMode: ShaderEffect.BackFaceCulling
fragmentShader: "
uniform lowp sampler2D source; // this item
varying highp vec2 qt_TexCoord0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment