Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Best way for day > night transition  (Read 1121 times)

0 Members and 1 Guest are viewing this topic.

Fnak

  • Newbie
  • *
  • Posts: 22
    • View Profile
Best way for day > night transition
« on: February 09, 2015, 09:05:44 pm »
hi i've made a small game with some simple textures as background

what would be the best way to make a like a day > night transition? aka go from bright to dark... sort of
I did some small research about shaders but didn't understand it very well

are there any easy ways to change brightness or something?
otherwise I'll just read up more on shaders I suppose

big thanks in advance! and apologise if these kind of threads are not "appreciated".....

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Best way for day > night transition
« Reply #1 on: February 09, 2015, 10:08:08 pm »
It fully depends on your game, there's no "generic" solution. There even isn't really anything like "brightness" it's just something more white or colors that seem to be brighter.

If you want something that effects all your drawing in an easy way, you might want to use a shader.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Fnak

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Best way for day > night transition
« Reply #2 on: February 09, 2015, 10:44:54 pm »
Just the answer I was hoping for! I will go learn more about shaders.

ty for the answer and have a good day!

case closed