🚚 Move effect sources to separate directory

This commit is contained in:
Simon Schneegans
2023-01-29 12:42:06 +01:00
parent 764b8b9ffa
commit 6904762590
24 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ Just remember to replace `simple-fade` with your custom name!
### 2. Creating the Effect Class
You will have to create a new GLSL file called `resources/shaders/simple-fade.frag` and a new JavaScript source file called `src/SimpleFade.js`.
You will have to create a new GLSL file called `resources/shaders/simple-fade.frag` and a new JavaScript source file called `src/effects/SimpleFade.js`.
Simply paste the following source code to the respective file.
Please study this code carefully, all of it is explained with inline comments.
@@ -239,7 +239,7 @@ Like this:
```javascript
const ALL_EFFECTS = [
...
new Me.imports.src.SimpleFade.SimpleFade(),
new Me.imports.src.effects.SimpleFade.SimpleFade(),
...
];
```