1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-11-01 15:42:12 +00:00

Optimization: new texture based way to draw the noise. It looks better. There is also a wiser use of textures which brings big performance improvements.

This commit is contained in:
Filippo Scognamiglio
2014-12-13 16:53:45 +01:00
parent b9afcec3cf
commit 6cabacbcc0
6 changed files with 32 additions and 46 deletions

View File

@@ -54,24 +54,6 @@ ShaderTerminal{
bloomSource: bloomSourceLoader.item
Image {
id: staticNoiseImage
source: "images/noise512.png"
anchors.centerIn: parent
width: parent.width / (appSettings.window_scaling * appSettings.fontScaling)
height: parent.height / (appSettings.window_scaling * appSettings.fontScaling)
fillMode: Image.Tile
}
noiseSource: ShaderEffectSource{
id: staticNoiseSource
sourceItem: staticNoiseImage
wrapMode: ShaderEffectSource.Repeat
smooth: true
hideSource: true
visible: false
}
ShaderEffect {
id: rasterizationEffect
width: parent.width