📝 Add some comments
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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: {}},
|
||||
|
||||
Reference in New Issue
Block a user