Both Bernhard and Ligotti seem to have been heavily influenced by Schopenhauer, the granddaddy of pessimism.