Added calculating shadow