Skip to content

Commit

Permalink
Fix details
Browse files Browse the repository at this point in the history
  • Loading branch information
Drombeys committed Aug 2, 2024
1 parent 1347186 commit 91bca50
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
13 changes: 13 additions & 0 deletions src/Layers/xrRender/DetailManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@
const float dbgOffset = 0.f;
const int dbgItems = 128;

u32 dm_size = 24;
u32 dm_cache1_line = 12;
u32 dm_cache_line = 49;
u32 dm_cache_size = 2401;
float dm_fade = 47.5;
u32 dm_current_size = 24;
u32 dm_current_cache1_line = 12;
u32 dm_current_cache_line = 49;
u32 dm_current_cache_size = 2401;
float dm_current_fade = 47.5;
float ps_current_detail_density = 0.6;
float ps_current_detail_scale = 1.f;

//--------------------------------------------------- Decompression
static int magic4x4[4][4] =
{
Expand Down
34 changes: 17 additions & 17 deletions src/Layers/xrRender/DetailManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@
#else
const int dm_max_decompress = 7;
#endif
const int dm_cache1_count = 4;
const int dm_max_objects = 64;
const int dm_obj_in_slot = 4;
const float dm_slot_size = DETAIL_SLOT_SIZE;

const u32 dm_max_cache_size = 62001 * 2;
extern u32 dm_size;
extern u32 dm_cache1_line;
extern u32 dm_cache_line;
extern u32 dm_cache_size;
extern float dm_fade;
extern u32 dm_current_size;
extern u32 dm_current_cache1_line;
extern u32 dm_current_cache_line;
extern u32 dm_current_cache_size;
extern float dm_current_fade;
extern float ps_current_detail_density;
const int dm_cache1_count = 4;
const int dm_max_objects = 64;
const int dm_obj_in_slot = 4;
const float dm_slot_size = DETAIL_SLOT_SIZE;

const u32 dm_max_cache_size = 62001 * 2;
extern u32 dm_size;
extern u32 dm_cache1_line;
extern u32 dm_cache_line;
extern u32 dm_cache_size;
extern float dm_fade;
extern u32 dm_current_size;
extern u32 dm_current_cache1_line;
extern u32 dm_current_cache_line;
extern u32 dm_current_cache_size;
extern float dm_current_fade;
extern float ps_current_detail_density;

class CDetailManager
{
Expand Down
15 changes: 1 addition & 14 deletions src/Layers/xrRender/xrRender_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,19 +203,6 @@ int ps_r3_dyn_wet_surf_sm_res = 256; // 256
float ps_r2_gloss_factor = 3.14f;

int ps_r__detail_radius = 49;
u32 dm_size = 24;
u32 dm_cache1_line = 12;
u32 dm_cache_line = 49;
u32 dm_cache_size = 2401;
float dm_fade = 47.5;
u32 dm_current_size = 24;
u32 dm_current_cache1_line = 12;
u32 dm_current_cache_line = 49;
u32 dm_current_cache_size = 2401;
float dm_current_fade = 47.5;
float ps_current_detail_density = 0.6;
float ps_current_detail_scale = 1.f;

float ps_r4_cas_sharpening = 0.0f;

// Test float exported to shaders for development
Expand Down Expand Up @@ -806,7 +793,7 @@ void xrRender_initconsole ()
CMD3(CCC_Mask, "r4_enable_tessellation", &ps_r2_ls_flags_ext, R2FLAGEXT_ENABLE_TESSELLATION);//Need restart

// IX-Ray
CMD4(CCC_DetailRadius, "r__detail_radius", &ps_r__detail_radius, 49, 350);
CMD4(CCC_DetailRadius, "r__detail_radius", &ps_r__detail_radius, 49, 250);
CMD3(CCC_Mask, "r__no_ram_textures", &ps_r__common_flags, RFLAG_NO_RAM_TEXTURES);
CMD3(CCC_Mask, "r__mt_texture_load", &ps_r__common_flags, RFLAG_MT_TEX_LOAD);
CMD3(CCC_Token, "r_aa", &ps_r2_aa_type, aa_type_token);
Expand Down

0 comments on commit 91bca50

Please sign in to comment.