Skip to content

Instantly share code, notes, and snippets.

@BadgerCode
Last active April 9, 2024 01:02
Show Gist options
  • Save BadgerCode/1810d005a08ff7b306a83bfd340f6f26 to your computer and use it in GitHub Desktop.
Save BadgerCode/1810d005a08ff7b306a83bfd340f6f26 to your computer and use it in GitHub Desktop.
Build cubemaps for a Garry's Mod map in both Low Dynamic Range (LDR) and High Dynamic Range (HDR)

This fixes issues with objects and weapons appearing very shiny in the map.

  • You must have a copy of the map in your Garry's Mod folder
  • If you wish to fix a workshop map, you must first extract the map file

Before running the steps below, enable HDR:
Options -> Video -> Advanced -> "High Dynamic Range" -> Full

Open the map in singleplayer and enter the following console commands

  1. sv_cheats 1
  2. mat_hdr_level 2 (to go to HDR)
    • The map should reload. If it doesn't, enter the command restart
  3. building_cubemaps 1
  4. buildcubemaps
  5. mat_hdr_level 0 (to go to LDR)
    • The map should reload. If it doesn't, enter the command restart
  6. buildcubemaps
  7. mat_hdr_level 2 (to go back to HDR)
@Mngdd
Copy link

Mngdd commented Aug 7, 2022

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment