Add "ShadeEmission" and fix some bugs in KSC.