diff --git a/Assets/FlashTools/Scripts/FTRuntime/SwfManager.cs b/Assets/FlashTools/Scripts/FTRuntime/SwfManager.cs index 6b110ec..7de3ed9 100644 --- a/Assets/FlashTools/Scripts/FTRuntime/SwfManager.cs +++ b/Assets/FlashTools/Scripts/FTRuntime/SwfManager.cs @@ -231,6 +231,12 @@ namespace FTRuntime { _controllers.Remove(controller); } + void SetupCameras() { + foreach ( var camera in Camera.allCameras ) { + camera.clearStencilAfterLightingPass = true; + } + } + void GrabEnabledClips() { var clips = FindObjectsOfType(); for ( int i = 0, e = clips.Length; i < e; ++i ) { @@ -294,6 +300,7 @@ namespace FTRuntime { // --------------------------------------------------------------------- void OnEnable() { + SetupCameras(); GrabEnabledClips(); GrabEnabledControllers(); }