Skip to content

Commit 2a73da1

Browse files
committed
Апдейт ресурсов
1 parent 7a31569 commit 2a73da1

File tree

12 files changed

+90
-36
lines changed

12 files changed

+90
-36
lines changed

Game/Resources_SoC_1.0006/gamedata/config/external.ltx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ run_speed = 6.74
240240
walk_amplitude = 0.005
241241
walk_speed = 6.26
242242
crouch_k = 0.75
243-
;zoom_k = 0.1
243+
zoom_k = 0.1
244244
scope_zoom_k = 0.1
245245

246246

Game/Resources_SoC_1.0006/gamedata/config/ui/ui_mm_opt.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
<text font="letterica16" r="215" g="195" b="170">ui_mm_r2_actor_shadow</text>
623623
</cap_r2_actor_shadow>
624624
<check_r2_actor_shadow x="249" y="0" width="30" height="21">
625-
<options_item entry="r__actor_shadow" group="mm_opt_video_adv"/>
625+
<options_item entry="g_actor_shadow" group="mm_opt_video_adv"/>
626626
</check_r2_actor_shadow>
627627

628628
<cap_r_sslr_enable x="5" y="5" width="143" height="21">

Game/Resources_SoC_1.0006/gamedata/scripts/level_weathers.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function WeatherManager:select_weather(forced)
5555
--
5656
env_desc.wind_direction = utils.deg2rad(math.random(360)) --Рандомный угол ветра
5757
--
58-
env_desc.m_fSunShaftsIntensity = math.random(3000) * 0.0001 --Рандомная интенсивность лучей
58+
env_desc.m_fSunShaftsIntensity = math.random(1500) * 0.0001 --Рандомная интенсивность лучей
5959
--
6060
--log3("--[%s][%s] wind_velocity: [%s], wind_direction: [%s], m_fSunShaftsIntensity: [%s]", script_name(), idx, env_desc.wind_velocity, env_desc.wind_direction, env_desc.m_fSunShaftsIntensity)
6161
end

Game/Resources_SoC_1.0006/gamedata/scripts/ui_mm_opt_video_adv.script

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ local adv_vid_opt_params = {
1717
--
1818
{ "vis_dist", "track", 0, hint_colors.yellow, "video_settings_name_2" , "video_settings_desc_2" },
1919
{ "geometry_lod", "track", 0, hint_colors.yellow, "video_settings_name_3" , "video_settings_desc_3" },
20-
{ "dyn_opt_dist", "track", 0, hint_colors.yellow, "video_settings_name_68", "video_settings_desc_68" },
20+
-- { "dyn_opt_dist", "track", 0, hint_colors.yellow, "video_settings_name_68", "video_settings_desc_68" },
2121
--
2222
{ "r__smap_size", "list", 1, hint_colors.red , "video_settings_name_59", "video_settings_desc_59" },
2323
{ "r2_sun_quality", "list", 0, hint_colors.red , "", "" },
2424
{ "sun_shafts", "list", 0, hint_colors.yellow, "video_settings_name_29", "video_settings_desc_29" },
25-
-- { "r2_actor_shadow", "check", 0, hint_colors.green , "video_settings_name_56", "" },
25+
{ "r2_actor_shadow", "check", 0, hint_colors.green , "video_settings_name_56", "" },
2626
{ "lens_flare", "check", 0, hint_colors.green, "video_settings_name_67", "" },
2727
--
2828
{ "ao_mode", "list", 0, hint_colors.red , "video_settings_name_38", "video_settings_desc_38" },
675 Bytes
Binary file not shown.
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
function normal(shader, t_base, t_second, t_detail)
2-
shader:begin("effects_sun","stub_default")
3-
-- : sorting (2, false)
4-
-- : blend (true,blend.srcalpha,blend.invsrcalpha)
5-
-- : blend (true,blend.one,blend.one)
6-
: blend (true,blend.srcalpha,blend.one)
7-
: zb (false,false)
8-
shader:dx10texture ("s_base", t_base)
9-
shader:dx10sampler ("smp_base")
2+
shader:begin("effects_flare", "effects_flare")
3+
: blend(true, blend.srcalpha, blend.one)
4+
: zb(false, false)
5+
shader:dx10texture("s_base", t_base)
6+
shader:dx10texture("s_position", "$user$position")
7+
shader:dx10sampler("smp_base")
8+
shader:dx10sampler("smp_nofilter")
109
end
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#include "common.h"
2+
3+
struct v2p_flare
4+
{
5+
float2 Tex0 : TEXCOORD0;
6+
float4 Tex1 : TEXCOORD1;
7+
float4 Color : COLOR;
8+
float4 HPos : SV_Position;
9+
};
10+
11+
uniform float4x4 mVPTexgen;
12+
13+
//////////////////////////////////////////////////////////////////////////////////////////
14+
// Vertex
15+
v2p_flare main(v_TL I)
16+
{
17+
v2p_flare O;
18+
19+
O.HPos = mul(m_VP, I.P); // xform, input in world coords
20+
21+
O.Tex0 = I.Tex0;
22+
O.Tex1 = mul(mVPTexgen, I.P);
23+
O.Tex1.z = O.HPos.z;
24+
25+
O.Color = I.Color.bgra; // swizzle vertex colour
26+
27+
return O;
28+
}
671 Bytes
Binary file not shown.
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
function normal(shader, t_base, t_second, t_detail)
2-
shader:begin("effects_sun","stub_default")
3-
-- : sorting (2, false)
4-
-- : blend (true,blend.srcalpha,blend.invsrcalpha)
5-
-- : blend (true,blend.one,blend.one)
6-
: blend (true,blend.srcalpha,blend.one)
7-
: zb (true,false)
8-
-- shader:sampler ("s_base") :texture (t_base)
9-
shader:dx10texture ("s_base", t_base)
10-
shader:dx10sampler ("smp_base")
2+
shader:begin("effects_sun","effects_sun")
3+
: blend(true, blend.srcalpha, blend.one)
4+
: zb(true,false)
5+
shader:dx10texture("s_base", t_base)
6+
shader:dx10texture("s_position", "$user$position")
7+
shader:dx10sampler("smp_base")
8+
shader:dx10sampler("smp_nofilter")
119
end

Game/Resources_SoC_1.0006/gamedata/shaders/r3/effects_sun.vs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
#include "common.h"
22

3+
struct v2p_sun
4+
{
5+
float2 Tex0 : TEXCOORD0;
6+
float4 Tex1 : TEXCOORD1;
7+
float4 Color : COLOR;
8+
float4 HPos : SV_Position;
9+
};
10+
11+
uniform float4x4 mVPTexgen;
12+
313
//////////////////////////////////////////////////////////////////////////////////////////
414
// Vertex
5-
v2p_TL main(v_TL I)
15+
v2p_sun main(v_TL I)
616
{
7-
v2p_TL O;
17+
v2p_sun O;
818

9-
// O.HPos = I.P;
1019
O.HPos = mul(m_VP, I.P); // xform, input in world coords
11-
O.HPos.z = O.HPos.w;
20+
1221
O.Tex0 = I.Tex0;
22+
O.Tex1 = mul(mVPTexgen, I.P);
23+
O.Tex1.z = O.HPos.z;
24+
1325
O.Color = I.Color.bgra; // swizzle vertex colour
1426

1527
return O;

0 commit comments

Comments
 (0)