Fixes to shader inheritance and texturing