Exemple #1
0
        public void Load()
        {
            var shaders = _resourceManager.GetShaders().ToList();

            foreach (var shader in shaders)
            {
                shader.Configure(_renderer);
            }
            _currentMaterial = new Material(shaders.First());
            _currentMaterial.Configure(_renderer);

            InitView(shaders);

            _shape = _shapes.First();
            _shape.Shape.Material = _currentMaterial;
            _shape.Configure(_renderer);
        }