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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user