Renderer:

* Fix for a problem in the material caps hash generation logic
  that led to inappropriate reuse of shaders.

* Reverse integration of beneficial changes found during the merge
  to the MV client codebase, specifically:

* Store and check the currently bound material.

* Use external material appropriately when rendering individual
  scene meshes.