Following on from an idea in #38 of putting references into Context so that @context_funcs can access them, what if the Context was also passed into renderers instead of the current mish-mash of engine, node, references and global names?
Other than possibly just being neater, another key advantage of doing this would be allowing renderers to update the warnings and errors sets. At the moment, there's no good way for renderers to log problems that wouldn't spam the console on each frame, so they tend to just eat errors and forget about them.
Following on from an idea in #38 of putting references into
Contextso that@context_funcs can access them, what if theContextwas also passed into renderers instead of the current mish-mash of engine, node, references and global names?Other than possibly just being neater, another key advantage of doing this would be allowing renderers to update the
warningsanderrorssets. At the moment, there's no good way for renderers to log problems that wouldn't spam the console on each frame, so they tend to just eat errors and forget about them.