| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Rectangle { |
| 4 |
width: 320 |
| 5 |
height: 480 |
| 6 |
color: "black" |
| 7 |
|
| 8 |
Text { |
| 9 |
id: text |
| 10 |
anchors.fill: parent |
| 11 |
font.pixelSize: 16 |
| 12 |
text: "In the field of computer graphics, a shader is a set of software instructions which" |
| 13 |
+ " is used primarily to calculate rendering effects on graphics hardware with a high " |
| 14 |
+ "degree of flexibility. Shaders are used to program the graphics processing unit (GP" |
| 15 |
+ "U) programmable rendering pipeline, which has mostly superseded the fixed-function " |
| 16 |
+ "pipeline that allowed only common geometry transformation and pixel-shading functio" |
| 17 |
+ "ns; with shaders, customized effects can be used." |
| 18 |
wrapMode: Text.Wrap |
| 19 |
color: "yellow" |
| 20 |
visible: false |
| 21 |
} |
| 22 |
|
| 23 |
ShaderEffectSource { |
| 24 |
anchors.fill: parent |
| 25 |
sourceItem: text |
| 26 |
smooth: true |
| 27 |
mipmap: true |
| 28 |
scale: 0.6 |
| 29 |
} |
| 30 |
} |