The repository that synthesizes Solar2D shaders made or collected by Kan.
Note:
Because I don't use Ios, macOS, Linux and Nintendo switch devices, I can't test shaders on these platforms. If you use my shader on these platforms and it works fine then please let me know.
Thanks you very much!
- Symbol summary:
Symbol | Describe |
---|---|
☑ | Supported |
☐ | Not test yet |
☒ | Unsupported |
- List of shaders:
require "sway"
object.fill.effect = "filter.custom.sway"
object.fill.effect.offset = 0.0 -- make different
object.fill.effect.heightOffset = 0.6 -- The height where the wind begins to move
object.fill.effect.distortion = 0.5 -- The strength of geometry distortion.
- Support platforms:
OS/Platform | Supported |
---|---|
Android | ☑ |
Ios | ☑ |
Window | ☑ |
Mac | ☑ |
Linux | ☐ |
HTML5 | ☑ |
Nintendo Switch | ☑ |
- For mobile devices need to add 1 texture noise.
- Lua code:
--Mobile version
object.fill = {
type = "composite",
paint1 = { type = "image", filename = "image.png" },
paint2 = { type = "image", filename = "noise.jpg" }
}
require "burn_mobile"
object.fill.effect = "filter.custom.burn"
object.fill.effect.startTime = system.getTimer() / 1000
object.fill.effect.duration = 2.0
--Other version (not need noise texture)
require "burn"
object.fill.effect = "filter.custom.burn"
object.fill.effect.startTime = system.getTimer()/1000
object.fill.effect.duration = 2.0
- Support platforms:
OS/Platform | Supported |
---|---|
Android | ☑ |
Ios | ☑ |
Window | ☑ |
Mac | ☑ |
Linux | ☐ |
HTML5 | ☒ |
Nintendo Switch | ☑ |
require "crt"
object.fill.effect = "filter.custom.crt"
- Support platforms:
OS/Platform | Supported |
---|---|
Android | ☑ |
Ios | ☑ |
Window | ☑ |
Mac | ☑ |
Linux | ☐ |
HTML5 | ☒ |
Nintendo Switch | ☑ |
Ref: https://godotshaders.com/shader/vhs-and-crt-monitor-effect/;