📝 Update comments
This commit is contained in:
+6
-3
@@ -32,9 +32,12 @@ const TRexShader = Me.imports.src.extension.TRexShader.TRexShader;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
// This extensions modifies the window-close animation to look like the window was set //
|
||||
// on fire. While this is definitely a homage to the good old Compiz plugin, it is //
|
||||
// implemented differently. While Compiz used a particle system, this extension uses a //
|
||||
// perlin noise shader. //
|
||||
// on fire. There are also a few other effects available. All of them are implemented //
|
||||
// using GLSL shaders which are applied to the window's Clutter.Actor. The extension is //
|
||||
// actually very simple, most of the complexity comes from the fact that GNOME Shell //
|
||||
// usually does not show an animation when a window is closed in the overview. Several //
|
||||
// methods need to be monkey-patched to get this working. For more details, read the //
|
||||
// other comments in this file... //
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class Extension {
|
||||
|
||||
@@ -20,10 +20,11 @@ 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. //
|
||||
// This effect is a homage to the good old Compiz days. However, it is implemented //
|
||||
// quite differently. While Compiz used a particle system, this effect uses a noise //
|
||||
// shader. The noise 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: {}},
|
||||
|
||||
Reference in New Issue
Block a user