Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/univeous/godot-2d-glow
Godot 2D Glow effect demo.
https://github.com/univeous/godot-2d-glow
godot
Last synced: 23 days ago
JSON representation
Godot 2D Glow effect demo.
- Host: GitHub
- URL: https://github.com/univeous/godot-2d-glow
- Owner: univeous
- License: mit
- Created: 2020-07-11T08:19:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-13T06:48:07.000Z (over 4 years ago)
- Last Synced: 2023-03-24T13:42:15.178Z (almost 2 years ago)
- Topics: godot
- Language: GDScript
- Homepage:
- Size: 139 KB
- Stars: 68
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Godot 2D Glow demo
This repository is a godot port of [Brackeys Unity 2D GLOW tutorial](https://www.youtube.com/watch?v=WiDVoj5VQ4c).You can make part of sprite glow,and change the glow color at runtime.
![Pireview](imgs/preview.png)
There is also a better(I think) hdr color picker in this repository:
![Hdr Color Picker preview](imgs/hdr-color-picker.jpg)
## How it works
The player's [material](https://github.com/2254FB/Godot-2D-Glow/blob/master/godot/materials/player_emission.tres) will set specific hdr color to part of sprite,
and the WorldEnvironment node in main scene will make all hdr color glow.## Credits
- The main idea comes from [Brackeys](https://www.youtube.com/c/Brackeys).- The sprites is created by [ansimuz](https://opengameart.org/content/gothicvania-church-pack).
- Some of the code in hdr_color_picker.gd is from [UnityCsReference](https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/GUI/ColorMutator.cs).