A downloadable asset pack

Buy Now$2.99 USD or more

Links: Forum - Marketplace

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


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! Physics rope, liquid simulation, textured terrain, custom savegame, shaders and more.


Buy Now$2.99 USD or more

In order to download this asset pack you must purchase it at or above the minimum price of $2.99 USD. You will get access to the following files:

DayNight.gmez 72 kB
DayNight.yymp 76 kB
DayNight.gmz 79 kB
DayNight.yyz 174 kB

Development log


Log in with itch.io to leave a comment.

What's your method for the stars?

Demo not work. Error text:

FATAL ERROR in Vertex Shader compilation

ShaderName: sh_night

D3DXCompile failed - result

at gml_Object_o_shader_start_Draw_0

That's the problem on your side, maybe something with your video card. Are sure that it is compatible with the shaders?

Of course I sure. Games and other projects contained shaders still work.