DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
PPERain.c
См. документацию.
1
3{
4 static const int PARAM_DROPDISTANCE = 0;
5 static const int PARAM_DROPSIZEX = 1;
6 static const int PARAM_DROPSIZEY = 2;
7 static const int PARAM_RAINFOGGINESS = 3;
8 static const int PARAM_RAINDENSITY = 4;
9 static const int PARAM_FOGCOLORMULT = 5;
10 static const int PARAM_BCKGRNDCOLORMULT = 6;
11 static const int PARAM_REFRACTIONSCALE = 7;
12 static const int PARAM_SUNVISIBLE = 8;
13 static const int PARAM_GODRAYINTNEAR = 9;
14 static const int PARAM_GODRAYINTFAR = 10;
15 static const int PARAM_RIPPLESBLEND = 11;
16 static const int PARAM_RIPPLESDIST = 12;
17 static const int PARAM_SPEED = 13;
18 static const int PARAM_DISTANTSPEED = 14;
19 static const int PARAM_WINDAFFECTSPEED = 15;
20 static const int PARAM_MINDIVERGENCE = 16;
21 static const int PARAM_MAXDIVERGENCE = 17;
22 static const int PARAM_WINDSPEEDFORMAXDIV = 18;
23 /*
24 static const int PARAM_DROPREFRACTIONTEX = 19;
25 static const int PARAM_DISTANTTEX = 20;
26 static const int PARAM_ROTNOISEMAP = 21;
27 static const int PARAM_RIPPLEMAP = 22;
28 static const int PARAM_MOVMAP = 23;
29 static const int PARAM_MOVNOISEMAP = 24;
30 static const int PARAM_SUNMASKMAT = 25;
31 */
32
34 {
35 return PostProcessEffectType.Rain;
36 }
37
38 override string GetDefaultMaterialPath()
39 {
40 return "Graphics/Materials/postprocess/rain";
41 }
42
44 {
45 RegisterParameterScalarFloat(PARAM_DROPDISTANCE,"DropDistance",1.45,0.0,100.0);
46 RegisterParameterScalarFloat(PARAM_DROPSIZEX,"DropSizeX",0.003,0.0,100.0);
47 RegisterParameterScalarFloat(PARAM_DROPSIZEY,"DropSizeY",0.075,0.0,100.0);
48 RegisterParameterScalarFloat(PARAM_RAINFOGGINESS,"RainFogginess",0.5,0.0,5.0);
49 RegisterParameterScalarFloat(PARAM_RAINDENSITY,"RainDensity",1.0,0.0,5.0);
50 RegisterParameterScalarFloat(PARAM_FOGCOLORMULT,"FogColorMultiplier",0.5,0.0,5.0);
51 RegisterParameterScalarFloat(PARAM_BCKGRNDCOLORMULT,"BackgroundColorMultiplier",1.1,0.0,5.0);
52 RegisterParameterScalarFloat(PARAM_REFRACTIONSCALE,"RefractionScale",0.01,0.0,1.0);
53 RegisterParameterScalarFloat(PARAM_SUNVISIBLE,"SunVisible",1.0,0.0,1.0);
54 RegisterParameterScalarFloat(PARAM_GODRAYINTNEAR,"GodRayIntensityNear",1.5,0.0,50.0);
55 RegisterParameterScalarFloat(PARAM_GODRAYINTFAR,"GodRayIntensityFar",1.2,0.0,50.0);
56 RegisterParameterScalarFloat(PARAM_RIPPLESBLEND,"RipplesBlend",50.0,0.0,250.0);
57 RegisterParameterScalarFloat(PARAM_RIPPLESDIST,"RipplesDist",100.0,0.0,250.0);
58 RegisterParameterScalarFloat(PARAM_SPEED,"Speed",10.0,0.0,50.0);
59 RegisterParameterScalarFloat(PARAM_DISTANTSPEED,"DistantSpeed",16.0,0.0,100.0);
60 RegisterParameterScalarFloat(PARAM_WINDAFFECTSPEED,"WindAffectsSpeed",0.02,0.0,10.0);
61 RegisterParameterScalarFloat(PARAM_MINDIVERGENCE,"MinDivergence",0.005,0.0,1.0);
62 RegisterParameterScalarFloat(PARAM_MAXDIVERGENCE,"MaxDivergence",0.03,0.0,1.0);
63 RegisterParameterScalarFloat(PARAM_WINDSPEEDFORMAXDIV,"WindSpeedForMaxDivergence",10.0,0.0,100.0);
64
65 /*RegisterParameterTexture(PARAM_DROPREFRACTIONTEX,"DropRefractionTex","{3D95A4E49ACDDE5}graphics/textures/postprocess/drop_refraction.edds");
66 RegisterParameterTexture(PARAM_DISTANTTEX,"DistantTex","{3435F57626D5A6DB}graphics/textures/postprocess/raindistantmask.edds");
67 RegisterParameterTexture(PARAM_ROTNOISEMAP,"RotationNoiseMap","{7B4F4B4EE2566E84}graphics/textures/postprocess/noise.edds");
68 RegisterParameterTexture(PARAM_RIPPLEMAP,"RipplesMap","{59E25B3D2EB94B}graphics/textures/postprocess/ripple.edds");
69 RegisterParameterTexture(PARAM_MOVMAP,"MovableMap","{EBF63DBBED7D8}graphics/textures/postprocess/rainripplesmovable.edds");
70 RegisterParameterTexture(PARAM_MOVNOISEMAP,"MovableNoiseMap","{2E275BD75961FA54}graphics/textures/postprocess/rainripplesmovablenoise.edds");*/
71
72 //RegisterParameterResource(PARAM_SUNMASKMAT,"SunMaskMat","{FAF56DD689E895BE}Graphics/Materials/postprocess/godrayssunmask.emat");
73 }
74}
void RegisterParameterScalarFloat(int idx, string parameter_name, float default_value, float min, float max)
WARNING - min/max values are usually taken from Workbench defaults, may not be actual min/max values ...
Определения PPEMatClassesBase.c:77
void PPEClassBase(string mat_path_override="")
Определения PPEMatClassesBase.c:14
static const int PARAM_RAINFOGGINESS
Определения PPERain.c:7
static const int PARAM_DROPSIZEY
Определения PPERain.c:6
static const int PARAM_GODRAYINTFAR
Определения PPERain.c:14
static const int PARAM_RIPPLESBLEND
Определения PPERain.c:15
override void RegisterMaterialParameters()
Определения PPERain.c:43
static const int PARAM_RAINDENSITY
Определения PPERain.c:8
static const int PARAM_SUNVISIBLE
Определения PPERain.c:12
override int GetPostProcessEffectID()
Определения PPERain.c:33
static const int PARAM_WINDSPEEDFORMAXDIV
Определения PPERain.c:22
static const int PARAM_FOGCOLORMULT
Определения PPERain.c:9
static const int PARAM_SPEED
Определения PPERain.c:17
static const int PARAM_WINDAFFECTSPEED
Определения PPERain.c:19
static const int PARAM_RIPPLESDIST
Определения PPERain.c:16
static const int PARAM_MINDIVERGENCE
Определения PPERain.c:20
static const int PARAM_DISTANTSPEED
Определения PPERain.c:18
static const int PARAM_DROPSIZEX
Определения PPERain.c:5
override string GetDefaultMaterialPath()
Определения PPERain.c:38
static const int PARAM_REFRACTIONSCALE
Определения PPERain.c:11
static const int PARAM_GODRAYINTNEAR
Определения PPERain.c:13
static const int PARAM_DROPDISTANCE
Определения PPERain.c:4
static const int PARAM_BCKGRNDCOLORMULT
Определения PPERain.c:10
static const int PARAM_MAXDIVERGENCE
Определения PPERain.c:21
Rain - PostProcessEffectType.Rain.
Определения PPERain.c:3
PostProcessEffectType
Post-process effect type.
Определения EnWorld.c:72