Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions engine/l_studio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,17 @@ ConVar r_rootlod( "r_rootlod", "0", FCVAR_MATERIAL_SYSTEM_THREAD | FCVAR_ARCHIVE
static ConVar r_decalstaticprops( "r_decalstaticprops", "1", 0, "Decal static props test" );
static ConCommand r_flushlod( "r_flushlod", FlushLOD_f, "Flush and reload LODs." );
ConVar r_debugrandomstaticlighting( "r_debugrandomstaticlighting", "0", FCVAR_CHEAT, "Set to 1 to randomize static lighting for debugging. Must restart for change to take affect." );
#ifdef __EMSCRIPTEN__
// Static prop vertex lighting (.vhv) arrives through the async filesystem into
// DataCache-managed color meshes. In the browser build props were drawn with
// color meshes that were not valid yet or already released: garbage
// green/blue lighting on props and an out-of-bounds crash in
// CMeshDX8::SetColorStreamState on iPhone. Props fall back to regular model
// lighting instead.
ConVar r_proplightingfromdisk( "r_proplightingfromdisk", "0", FCVAR_CHEAT, "0=Off, 1=On, 2=Show Errors" );
#else
ConVar r_proplightingfromdisk( "r_proplightingfromdisk", "1", FCVAR_CHEAT, "0=Off, 1=On, 2=Show Errors" );
#endif
static ConVar r_itemblinkmax( "r_itemblinkmax", ".3", FCVAR_CHEAT );
static ConVar r_itemblinkrate( "r_itemblinkrate", "4.5", FCVAR_CHEAT );
static ConVar r_proplightingpooling( "r_proplightingpooling", "-1.0", FCVAR_CHEAT, "0 - off, 1 - static prop color meshes are allocated from a single shared vertex buffer (on hardware that supports stream offset)" );
Expand Down
Loading