Beispiel #1
0
 public DirectionalLightWithShadow(BaseCamera viewerCamera, TextureParameters ShadowMapSettings, Vector3 Direction,
                                   Vector4 Ambient, Vector4 Diffuse, Vector4 Specular) : base(Direction, Ambient, Diffuse, Specular)
 {
     m_viewerCamera = viewerCamera;
     m_shadowOrthographicProjectionBuilder = new ShadowOrthoBuilder();
     m_shadowMapCache = null;
     InitResources(ShadowMapSettings);
 }
Beispiel #2
0
        protected DirectionalLightWithShadow(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            var shadowMapSettings = info.GetValue("shadowMapTextureParameters", typeof(TextureParameters)) as TextureParameters;

            InitResources(shadowMapSettings);
            m_shadowOrthographicProjectionBuilder = new ShadowOrthoBuilder();
            m_shadowMapCache = null;
        }