Download the Plugin and copy the addons directory into your projects folder
Enable the plugin in the project settings.
You should now be able to create VirtualLight
nodes. When you run the project, all VirtualLight
nodes will create Light
instances at the root of the containing viewport, instead of inside the tree. By setting the detail
value you can improve engine performance.
-
light_type = VirtualLight.LightType.Omni
: create an OmniLight at the root of the viewport -
light_type = VirtualLight.LightType.Spot
: create a SpotLight at the root of the viewport -
detail = VirtualLight.Detail.NORMAL_DETAIL
: Create a light at the root of the viewport. When your geometry is removed from the scene the light will not be removed. -
detail = VirtualLight.Detail.LOW_DETAIL
: Virtually disable shadows. The fact that the shadows are disabled will be hidden from scripts accessing theVirtualLight
properties -
detail = VirtualLight.Detail.LOWEST_DETAIL
: Remove the light from the scene completely for that wolfenstein 3d look. (also get double FPS!)
copy_from(light: Light) -> void
Copy an existing light's properties so you can replace it dynamically.
Enable show_debug_meshes
to show a labelled representation of a light and it's virtual light container in case they aren't actually matching up as expected