Material dispose, shader dispose only if it is not attached to any material