Sync directional light color change in time with material color change
I currently have a material that cycles through different colors based on the algorithm seen here:
I can apply this to an object or a floor and it has a nice effect, but of course it doesn't actually light up any other objects in the scene. As you can see, these two cubes I've placed in for testing are solid black.
I have added a dynamic directional light to the scene, but while I can get it to cycle through colors randomly using a Timeline, I can't seem to get it in sync with the same algorithm as the material, so the colors are off. Is there any way I can achieve the effect of the changing material lighting the scene appropriately?
Things I have tried:
You could change the light of your material in blueprints with a dynamic material instance. Just type in "create dynamic" and I'm sure it will show up. You can use it to set material parameters dynamically, you have to make a parameter for Color and plug it into emission. Then add a set vector parameter from your dynamic material
answered Jul 02 '18 at 06:40 AM
did you tried to make material function with this algirithm, and use it in floor material and in directional light's light function material?
answered Jul 02 '18 at 05:06 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here