protected override void InitializeCore()
        {
            base.InitializeCore();

            // TODO: restrict to forward mode only for now
            if (SceneCameraRenderer == null)
            {
                return;
            }

            var forwardMode = SceneCameraRenderer.Mode as CameraRendererModeForward;
            if (forwardMode != null)
            {
                lightComponentForwardRenderer = ToLoadAndUnload(new LightComponentForwardRenderer());
            }
        }
示例#2
0
        protected override void InitializeCore()
        {
            base.InitializeCore();

            // TODO: restrict to forward mode only for now
            if (SceneCameraRenderer == null)
            {
                return;
            }

            var forwardMode = SceneCameraRenderer.Mode as CameraRendererModeForward;

            if (forwardMode != null)
            {
                lightComponentForwardRenderer = ToLoadAndUnload(new LightComponentForwardRenderer());
            }
        }