Depth mask now rendering with square function