How to use (engine version 4.24 and beyond)
How to use (engine version 4.23 and prior)
Connected lights will pick up the colors of the video when you press play.
Make sure to read the tooltips on all of the properties in the details panel!
PointLights, SpotLights, RectLights and DirectionalLights are supported, with Stationary or Movable mobility.
Stationary lights still support baked shadows while working with this plugin.
The LightComponents are identified by their name and must be part of the same Actor as the VideoAmbientLightComponent.
The simplest possible material would just contain the MediaTexture of your MediaPlayer connected to the emissive color output of an unlit material.
The plugin calculates the light colors based on the emissive color output of the assigned SourceMaterial. This allows for any effects added in the material to be taken into account for determining the output colors.
The performance cost of this solution is generally small and scalable so it is suitable for games with tight performance constraints. The plugin is also built to support the DetailMode system, so if your project supports different graphics quality settings, you could disable the ambient lighting completely on low settings.
Feel free to contact me at firstname.lastname@example.org if you run into any issues or have any feature requests.