BYTE r, g, b;
   float C = 8.0f;


   // set sun
   r = (255-C/sqrt(1-cos(m_time))*0.03);
   g = (255-C/sqrt(1-cos(m_time))*0.75);
   b = (255-C/sqrt(1-cos(m_time))*0.97);
 

   // set sky
   r = (255-C/sqrt(1-cos(m_time))*0.73);
   g = (255-C/sqrt(1-cos(m_time))*0.05);
   b = (255-C/sqrt(1-cos(m_time))*0.07);

相关文章:

  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-25
  • 2021-10-02
  • 2021-12-28
  • 2021-11-02
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案