Пример #1
0
        private void LoadInitialShaders()
        {
            StaticLogger.Logger.Debug("Loading Intitial Shaders.");

            watcher.LoadAll();

            foreach (var shaderBlob in ShaderZoo.BuildZoo())
            {
                ShaderBlobs.Add(builder.BuildProgram(shaderBlob));
            }

            StaticLogger.Logger.Debug("Done Loading Initial Shaders.");

            this.CurrentShader = ShaderBlobs.Last();
        }
Пример #2
0
        public UrielForm(UrielConfiguration configuration)
        {
            this.configuration = configuration;
            if (configuration.WorkflowMode != UrielWorkflowMode.MovieMode)
            {
                this.watcher = new ShaderFileWatcher(configuration.WatchDirectory);
                watcher.Run();
            }

            this.renderLoop   = new RenderLoop();
            this.builder      = new ShaderBuilder(ShaderZoo.BadShaderArguments());
            this.FrameTracker = new FrameTracker();
            this.ShaderBlobs  = new BindingList <ShaderBlob>();

            this.listener = new KeyPressListener();
            this.tks      = new TotalKeyState();
            this.ki       = new KeyInterpreter();

            InitializeComponent();
        }