Updates to ShadingUtils.