Changing colors in the lighting challenge

Given what we learned in the previous lectures I thought I’d try move between two colors for my lighting.

https://docs.unity3d.com/ScriptReference/Light-color.html

It’s pretty easy so I thought I’d share the idea. You could do the same with the intensity and all.

The code was really simple. I kept what we had for calculating the sine wave and instead of positions used colors + a Light.

1 Like

Privacy & Terms