check if material is transparent and turn a wall into dynamic element