Exemplo n.º 1
0
        private void CompileButton_Click(object sender, EventArgs e)
        {
            GraphModel       model    = new GraphModel(new FileDependencyParserStrategy(), new DelimiterSerializationStrategy(), (List <Node>)graphControl.Nodes);
            Compiler         compiler = new T3DPostFxCompiler();
            ShaderOutputInfo outInfo  = new ShaderOutputInfo();

            outInfo.outputFilename = "compiledFile";
            outInfo.outputPath     = "output/";
            outInfo.scriptFilename = "compiledScriptFile";
            outInfo.scriptPath     = "outputScript/";
            compiler.Compile(new ProgramGraph(model), outInfo);
        }
Exemplo n.º 2
0
        private void compileToolStripButton_Click(object sender, System.EventArgs e)
        {
            GraphModel       model    = new GraphModel(new FileDependencyParserStrategy(), new DelimiterSerializationStrategy(), (List <Node>)graphControl.Nodes);
            Compiler         compiler = new T3DPostFxCompiler();
            ShaderOutputInfo outInfo  = new ShaderOutputInfo();

            outInfo.outputFilename = "compiledFile";
            outInfo.outputPath     = "../shaders/common/postFx/";
            outInfo.outputPath     = "./";
            outInfo.scriptFilename = "compiledScriptFile";
            outInfo.scriptPath     = "../core/scripts/client/postFx/";
            compiler.Compile(new ProgramGraph(model), outInfo);
        }