Why does the sun change from yellow to white?

The sun is kept at the same height btw

Thanks!

Do you mean that ambient changes in some positions? Well that’s the roblox engine feature, so I dob’t how you would fix this

The reason why the sun changes from yellow to white to yellow is because…if you look at the sun when it’s rising, around 6:15 am you can see its color is yellow. This is because of Roblox’s Engine which makes the sun yellow when rising. However, it remains white during sunset though.

In this case, you’re changing both TimeOfDay and GeographicLatitude

You can add blue outdoor ambient if the sun is yellow and it makes it white
This happens because

In the RGB color model, which is used in digital screens and displays, colors are created by combining different intensities of red, green, and blue light.

When blue and yellow light combine in RGB, they appear as white because of how additive color mixing works:

  1. Yellow in RGB: Yellow is created by combining red and green light at full intensity (R=255, G=255, B=0).
  2. Blue in RGB: Blue is produced by having only the blue light at full intensity (R=0, G=0, B=255).
  3. Combining Blue and Yellow: When you mix these two colors, you are effectively adding the values of their red, green, and blue components:
  • Yellow (255, 255, 0)
  • Blue (0, 0, 255)Adding them together results in:
  • R = 255 + 0 = 255
  • G = 255 + 0 = 255
  • B = 0 + 255 = 255This gives the color (255, 255, 255), which is white.

Why Does This Happen?

  • Additive color mixing is based on light, not pigments. In light, combining all primary colors at full intensity results in white. Yellow (red + green) and blue together fill all three components (red, green, blue) to maximum intensity, producing white.

This differs from subtractive color mixing (like with paints or pigments), where combining yellow and blue would give green due to the way pigments absorb and reflect light.

1 Like

image

The sun appears more yellow when it’s low in the sky because as its light travels through a thicker layer of Earth’s atmosphere at that angle, shorter wavelengths of light like blue and violet get scattered more, leaving the longer wavelengths like yellow, orange, and red to reach our eyes more prominently this phenomenon is called Rayleigh scattering.

image
basically, there is only orange and red light, and orange and red light can’t be changed into green or blue light, so you’re only left with the rainbow being colored with orange and yellow.

This is why sunrises and sunsets have a really orange color. And if you’re on top of a mountain filming the sunset, the sun’s color actually looks like this:



(I took these pictures btw, no color processing)

Notice, when the sun is higher in the sky, it’s more yellow/orange, vs when it’s about to hide behind the horizon, it’s a deep red.

This means, that the sun should be this orange color all throughout the cycle, but isn’t. I think the color of the sun is dependent on the time of day, which is wrong, it should be dependent on its height in the sky.

Does that makes sense? Did I get something wrong? Please let me know. Thanks! :D

1 Like