Bug fixes

-Fix broken caustics
-Restore r_bitdepth
-Restore broken lightmap scaling when hardware gamma is disabled
-Fix broken particles