Add and apply gstate.isMaterialAmbient/Diffuse/EmissiveEnabled()