[vlc-commits] [Git][videolan/vlc][master] qml: enable culling in shader effects

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Oct 10 04:51:26 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6fda7af5 by Fatih Uzunoglu at 2022-10-09T15:14:08+00:00
qml: enable culling in shader effects

- - - - -


3 changed files:

- modules/gui/qt/player/qml/PlayerBlurredBackground.qml
- modules/gui/qt/widgets/qml/FadingEdgeListView.qml
- modules/gui/qt/widgets/qml/FrostedGlassEffect.qml


Changes:

=====================================
modules/gui/qt/player/qml/PlayerBlurredBackground.qml
=====================================
@@ -80,6 +80,7 @@ Item {
         anchors.fill: parent
         visible: true
         blending: false
+        cullMode: ShaderEffect.BackFaceCulling
 
         fragmentShader: "qrc:///player/PlayerBlurredBackground.frag"
     }


=====================================
modules/gui/qt/widgets/qml/FadingEdgeListView.qml
=====================================
@@ -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;


=====================================
modules/gui/qt/widgets/qml/FrostedGlassEffect.qml
=====================================
@@ -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;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6fda7af5f8fe3658ccb7cdfdefc9c1fc6aaa9c6d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6fda7af5f8fe3658ccb7cdfdefc9c1fc6aaa9c6d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list