Example #1
0
 private static void LoadAndAddToShaderStore(string fileName)
 {
     try
     {
         ShaderCreationArguments fromFileArguments = ShaderLoader.LoadFromFile(fileName);
         ShaderStore.Shaders.Push(fromFileArguments);
     }
     catch (Exception ex)
     {
         StaticLogger.Logger.ErrorFormat("Could not read {0} : {1}", fileName, ex.ToString());
     }
 }
Example #2
0
        private void ContextCreated(uint multisampleBits)
        {
            GlErrorLogger.Check();
            // Uses multisampling, if available
            if (Gl.CurrentVersion != null && Gl.CurrentVersion.Api == KhronosVersion.ApiGl && multisampleBits > 0)
            {
                Gl.Enable(EnableCap.Multisample);
            }

            if (this.configuration.WorkflowMode == UrielWorkflowMode.EditorMode)
            {
                LoadInitialShaders();
            }
            else
            {
                this.CurrentShader = builder.BuildProgram(ShaderLoader.LoadFromFile(this.configuration.MovieModeShaderFileName));
            }

            StartTime = DateTime.UtcNow;
        }