From b5f911802de95ef4d3ddf7bf6a72bec08a1763b3 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Tue, 4 Jan 2022 21:51:07 +0100 Subject: [PATCH] :memo: Update comments --- extension.js | 9 ++++++--- src/extension/FireShader.js | 9 +++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/extension.js b/extension.js index 8adba43..c920725 100644 --- a/extension.js +++ b/extension.js @@ -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 { diff --git a/src/extension/FireShader.js b/src/extension/FireShader.js index 62de0eb..07644c4 100644 --- a/src/extension/FireShader.js +++ b/src/extension/FireShader.js @@ -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: {}},