Move uniforms from Shader to RenderPass
Easily construct fragment shader graphs
Status: Beta
Brought to you by:
philipashmore
The uniforms are updated in the RenderPass which updates them in the Shader before render(), conditional on some flag, say bool useRenderPassUniforms.
To allow the same shader to be used more than once by a 2+ input RenderPass some FBO management would be required.
This could be done by reference counting: [RenderPass]n:1[Shader], but is only needed if two or more RenderPasses are inputs to another RenderPass.
Diff: