📝 Add some comments

This commit is contained in:
Simon Schneegans
2021-12-24 13:13:56 +01:00
parent 9e374d04d0
commit 5628545c00
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -20,6 +20,10 @@ const Me = imports.misc.extensionUtils.getCurrentExtension();
const shaderSnippets = Me.imports.src.extension.shaderSnippets;
//////////////////////////////////////////////////////////////////////////////////////////
// The FireShader uses a procedural gray-scale noise texture. This texture is moved //
// vertically over time and mapped to a configurable color gradient. It is faded to //
// transparency towards the edges of the window. In addition, there are a couple of //
// moving gradients which fade-in or fade-out the fire effect. //
//////////////////////////////////////////////////////////////////////////////////////////
var FireShader = GObject.registerClass({Properties: {}, Signals: {}},
@@ -38,7 +42,6 @@ var FireShader = GObject.registerClass({Properties: {}, Signals: {}},
color.blue / 255}, ${color.alpha / 255})`);
}
this.set_shader_source(`
// Inject some common shader snippets.
+3
View File
@@ -20,6 +20,9 @@ const Me = imports.misc.extensionUtils.getCurrentExtension();
const shaderSnippets = Me.imports.src.extension.shaderSnippets;
//////////////////////////////////////////////////////////////////////////////////////////
// The MatrixShader multiplies a grid of random letters with some gradients which are //
// moving from top to bottom. The speed of the moving gradients is chosen randomly. //
// Also, there is a random delay making the gradients not drop all at the same time. //
//////////////////////////////////////////////////////////////////////////////////////////
var MatrixShader = GObject.registerClass({Properties: {}, Signals: {}},