public void AddShadowMap(int width, int height) { shadowmap_ = new StencilManager(width, height, true); Description.IsCastingShadows = true; Description.ShadowmapHeight = height; Description.ShadowmapWidth = width; }
public void Initialize(Projection projection) { if (Main == null) { Main = this; SetRenderTarget(ApplicationDX11.Instance.MainRenderTarget); } m_View = new View(m_transform, projection); m_StencilManager = new StencilManager(Screen.Instance.Width, Screen.Instance.Height); IsActive = true; HasRenderTexture = false; Cameras.Add(this); }