Exemplo n.º 1
0
        protected virtual void UpdateShadows(ShadowsDirectional shadows, Vector3 center)
        {
            _previousShadowsTarget = center;

            if (!EnableShadows)
            {
                shadows.Clear(DeviceContextHolder);
            }
            else
            {
                shadows.Update(-Light, center);
                shadows.DrawScene(DeviceContextHolder, this);
            }
        }