Exemple #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);
 }
Exemple #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;
        }
Exemple #3
0
 public void CreateShadowMapCache()
 {
     m_shadowMapCache = new ShadowMapCache();
 }