Add and apply gstate.isMaterialAmbient/Specualar/DiffuseEnabled()