This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Generate a 2d light for Godot | |
| local rgba = app.pixelColor.rgba | |
| local cel = app.activeCel | |
| if not cel then | |
| return app.alert("There is no active image") | |
| end | |
| local bounds = cel.bounds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ---------------------------------------------------------------------- | |
| -- Generate Normal Map | |
| -- | |
| -- It works only for RGB color mode. | |
| ---------------------------------------------------------------------- | |
| if app.apiVersion < 1 then | |
| return app.alert("This script requires Aseprite v1.2.10-beta3") | |
| end |