This function was erroneously being called twice, which caused the directional light color to break, but the direction still worked, which was confusing. I removed the duplicate call. Here is Wiseguy's explanation of the issue:
This is supposed to only be called in the game loop, before reading the controller inputs, so that it's one of the first things in the frame, thus allowing one to set the directional lighting almost anywhere in the code with no issue. But the duplicate call was resetting the global light color.
This function was erroneously being called twice, which caused the directional light color to break, but the direction still worked, which was confusing. I removed the duplicate call. Here is Wiseguy's explanation of the issue:
This is supposed to only be called in the game loop, before reading the controller inputs, so that it's one of the first things in the frame, thus allowing one to set the directional lighting almost anywhere in the code with no issue. But the duplicate call was resetting the global light color.