Hi you all. hope you can help me out.
Epic’s evangelist Sjoerd De Jong (@Hourences) said on the video “Exploring the depths of the new Sky & Atmosphere system”, that the SkyAtmosphereLightDirection node could be used to control light intensity, so here is my attempt.
i`ve been trying to control a spot light intensity value using the direction of the sun directional light, using the SkyAtmosphereLightDirection node, with the SunSky BP on the scene.
the objective: is to turn on movables lights when the sun is down, and turn them off when the sun is up. using it on a Light Function material applied on a Spot light.
Here is an image of the Light Function Material setup:
the “SkyAtmosphereLightDirection” node works Fine with the similar setup, but on a instance material applied on static meshes, using the direction of the light to mask emissive values. So certain objects light up as the sun goes down.
But had no luck using it on a light material function, which is applied on a spot light.
It seems the direction of the SUN directional light is being ignored when applied on a Light Function Material.
I can control the light intensity value using the Light Function material Instance, but the idea is that the sun direction should be doing it.
Could it be something wrong with the material function? Am i missing something?
Here i post 2 images to show the material instance working VS the light function material not working.
You can see the cube and sphere turning up the emissive value. but the spot light ramains the same:
I know there must be a way to manage this with blueprints, but the node cannot be copied into a BP, so i figured this could be an easier option.
Any ideas or suggestions will be greatly appreciated.
Thanks in advance!