Asset - Shaders Day / Night Cycle Shader

MusNik

Member
Download: Marketplace - Itch.io

Day and Night Cycle Shader can get really impressive effect on the atmosphere of the game.

It can be used even without application surface with a special system described. It can give really significant performance boost on mobile devices. But you always can use it on any sprite, background, object, layer or surface anyway.

Like in famous YoYo Games video it uses color remapping for working and doesn't change the alpha channel. You can specify on what regions is to use shader - without GUI layer for example, or use shader only on sky, or draw rays of light over the shader layer for cool effect.

All graphics are from kenney.nl packs

Demo: Download

With this shader you can:
  • Create alternation of day and night in your game.
  • Change the speed of cycle or attach its position in time to the variable.
  • Change colour propertices of each period of time.
  • Apply effect on fulscreen without surfaces.
  • Apply effect on any sprite, background or surface.
  • Do all of it fast and beautiful.
  • Get perfect work on all platforms - Windows, Mac, Linux, Android, iOS, HTML5 and other.
  • Get technical support if purchase.
You need intermediate knowledge of GML to use.

Please write a review if you like the asset and tell me your suggestions for improvement. If you found an error in my code or my English, please contact me ;)

My other assets! Fixture editor, LUT, physics rope, liquid simulation, textured terrain, custom savegame, breakable physics objects, shaders and more.


 
Last edited:
M

Mauwer

Guest
Hey, loving the shaders!

I'm not the best game maker programmer but i think i understand most of it.
The only questions I have is,
1. Can I create a torch like effects where in I use a gradient filled circle and use it as the light radius, and maybe even animate it to give it that flickering flame effect?
2. How do I get a draw_sprite to ignore the shader (so it lights up) without putting the objects that draws it on depth -1000? cause i want to have a shiny object that is behind dark objects.

Hope this makes sense XD
 

MusNik

Member
Hey, loving the shaders!

I'm not the best game maker programmer but i think i understand most of it.
The only questions I have is,
1. Can I create a torch like effects where in I use a gradient filled circle and use it as the light radius, and maybe even animate it to give it that flickering flame effect?
2. How do I get a draw_sprite to ignore the shader (so it lights up) without putting the objects that draws it on depth -1000? cause i want to have a shiny object that is behind dark objects.

Hope this makes sense XD
Thank you. Sorry for a long responce.

1. You can, this doesn't refer to asset.
2. You can try to turn off the shader by shader_reset, draw the sprite, and turn it on again by shader_set.
 
M

Mauwer

Guest
Thank you. Sorry for a long responce.

1. You can, this doesn't refer to asset.
2. You can try to turn off the shader by shader_reset, draw the sprite, and turn it on again by shader_set.
Worked perfectly.

Thank you.
 
Top