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); }
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; }