The causal conditions of perception