All Rust commits from Facepunch
do not copy shadow mode from renderer to avoid rendering shadows twice