public View(bool debug = false) { GL.BlendFunc(BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha); GL.Enable(EnableCap.Blend); _wrapper = debug ? (RenderWrapper) new RenderSimulator() : new RenderTranslator(); _vertex = new LightedVertex(); _fragment = new LightedFragment(); if (_wrapper is RenderTranslator translator) { string directory = Directory.GetCurrentDirectory(); translator.RegisterShader(_vertex, _fragment, directory + @"\..\..\Shaders\" + _vertex.GetType().Name + ".cs", directory + @"\..\..\Shaders\" + _fragment.GetType().Name + ".cs"); } }