/// <summary> /// Send the outputs to a destination SceneRenderer. /// </summary> public void SetOutputTo(BaseShader shader, string source, string dest) { RenderInput srcInput = null; RenderInput destInput = null; if (this.renderInputs.ContainsKey(source)) { srcInput = this.renderInputs[source]; } if (shader.renderInputs.ContainsKey(source)) { destInput = shader.renderInputs[source]; } // If a match is found, copy the input to the output if (srcInput != null && destInput != null) { destInput = srcInput; } }
/// <summary> /// Helper to add a render task and return that one after newly added /// Currently does nothing other than make a list /// </summary> protected BaseShader AddRenderTask(BaseShader renderTask) { renderTasks.Add("Test", renderTask); return(renderTasks.Last().Value); }