Asset - Shaders Day / Night Cycle Shader

Discussion in 'Marketplace' started by MusNik, Aug 18, 2016.

  1. MusNik

    MusNik Member

    Joined:
    Jun 21, 2016
    Posts:
    136

    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.

    [​IMG] [​IMG]
    [​IMG] [​IMG]
     
    Last edited: Feb 24, 2018
  2. Mauwer

    Mauwer Member

    Joined:
    Oct 10, 2016
    Posts:
    2
    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
     
  3. MusNik

    MusNik Member

    Joined:
    Jun 21, 2016
    Posts:
    136
    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.
     
  4. Mauwer

    Mauwer Member

    Joined:
    Oct 10, 2016
    Posts:
    2
    Worked perfectly.

    Thank you.
     
    MusNik likes this.
  5. MusNik

    MusNik Member

    Joined:
    Jun 21, 2016
    Posts:
    136

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice