I am looking for a way to append shader defines for all commands.
What i am currently doing :
- Creating empty RenderPath()
- Looping through all commands and appending to vertexShaderDefines and pixelShaderDefines.
- Append commands to new RenderPath, add all renderTargets
- Set new RenderPath to viewport.
I see all the object in viewport, but define does not seem to pass inside the shader.