a few more improvements to the shadertest

This commit is contained in:
Sebastian Kügler 2013-03-09 06:00:25 +01:00
parent 91339544ab
commit 39219a6567
2 changed files with 16 additions and 3 deletions

View File

@ -109,10 +109,15 @@ PlasmaComponents.Page {
bottomMargin: _s
}
text: { "void main(void) {\
gl_FragColor = vec4(1.0, 0.0, 0.0, 0.3);\
}"
// text: { "void main(void) {\
// gl_FragColor = vec4(1.0, 0.0, 0.0, 0.3);\
// }"
// }
text:"
void main(void) {
gl_FragColor = vec4(0.2, 0.8, 0.6, 0.3);
}
"
// width: parent.width
// parent.height-height: _h*2

View File

@ -46,6 +46,8 @@ Item {
height: _h
PlasmaComponents.TabButton { tab: wobbleExample; text: tab.pageName; }
//PlasmaComponents.TabButton { tab: colorExample; text: tab.pageName; }
PlasmaComponents.TabButton { tab: colorShower; text: tab.pageName; }
PlasmaComponents.TabButton { tab: simpleExample; text: tab.pageName; }
PlasmaComponents.TabButton { tab: vertexPage; iconSource: vertexPage.icon; }
}
@ -62,6 +64,12 @@ Item {
WobbleExample {
id: wobbleExample
}
ColorExample {
id: colorExample
}
ColorShower {
id: colorShower
}
SimpleExample {
id: simpleExample
}