Warning, /plasma/libplasma/examples/applets/testshaders/contents/ui/ColorExample.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 0009 ShaderExample { 0010 0011 pageName: "Colors" 0012 pageDescription: "" 0013 0014 ShaderEffect { 0015 anchors.fill: parent 0016 anchors.topMargin: 48 0017 opacity: 0.2 0018 0019 fragmentShader: { 0020 "uniform mat4 gl_ModelViewMatrix;" + 0021 "uniform mat4 gl_ProjectionMatrix;" + 0022 //"attribute vec4 gl_Vertex;" + 0023 "void main(void) {" + 0024 " gl_FragColor = vec4(1.0, 0.0, 0.0, 0.3); " + 0025 " gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex; " + 0026 "}" 0027 } 0028 } 0029 } 0030