Download

Source 2 Viewer v13.0

A compiled shader browser with a tree of all programs and variants, syntax highlighting for shader sources, and a reworked shader decompiler.

Screenshot showing shader decompilation output

GUI

  • New compiled shader browser with a tree structure of all the programs and variants
  • Added syntax highlighting for shader sources
  • Added a setting to change default code viewer font size
  • Code blocks that are bigger than 512 megabytes will fallback to plain textarea
    • FastColoredTextBox is in fact not fast enough to display Deadlock's physics file
  • Fixed inconsistent camera when opening files from model picker
  • Fixed file contents search skipping last archive
  • Fixed some particle operators
  • Renderer will now pause if the app is not active/focused
  • Single-file binary of S2V will now only extract native libraries instead of all the dlls into temp folder
  • Enabled drag-and-drop of files from Chrome based apps such as the explorer in VS Code
  • Disabled camera movement while holding control
  • Added UvDensity, LightmapUvDensity, MipmapUsage render modes, light probe volume debug grid spheres
  • Added R16G16B16A16_FLOAT vertex attribute format
  • Added special handler for viewing dmx files
  • Added renaming of inputs and structures in vulkan spir-v reflection where possible

CLI

  • Renamed the project from Decompiler to CLI, if you relied on the path to compile it yourself this is a breaking change

Library

  • Enabled C# nullables (still disabled in some files)
    • If you have nullables enabled in your project, you may need to add some extra null checks
  • Major refactoring of CompiledShader to align the structure and naming more closely to actual Source 2 shader code
  • glTF export improvements
    • Fixed not waiting for textures to export correctly
    • Exporting maps will now skip csgo_player_previewmodel models
    • Fixed multiple vertex buffers
    • Added small offset to overlays in gltf to reduce z fighting
    • Added exporting of light_environment
    • Export object tint as material base color
  • Added GridNavFile for parsing for grid nav (gnv) files
  • Added support for discovering content files from OfficialAddonRoot (CS2 community maps)
  • Added support for updated .nav files in Deadlock
  • Added support for changed VBIB in Deadlock
  • Added support for decompiling ADPCM wav files
  • Split hammer physics mesh to avoid issues with really big maps
  • Material decompiler will now export all cubemap and array images
  • Renamed SNAP to ParticleSnapshot
  • Renamed VXVS to VoxelVisibility
    • Come help us reverse engineer the vis_c files!
  • BlockType enum is now FourCC uint
  • Updated some enums to add missing values

View commits since 12.0 | View milestone

Thanks to