2
2
#define common_defines_h_included
3
3
4
4
//////////////////////////////////////////////////////////////////////////////////////////
5
- // Defines //
5
+ // Defines
6
6
#define def_gloss float(2.f /255.f)
7
7
#define def_aref float(200.f/255.f)
8
8
#define def_dbumph float(0.333f)
9
9
#define def_virtualh float(0.05f) // 5cm
10
- #define def_distort float(0.05f) // we get -0.5 .. 0.5 range, this is -512 .. 512 for 1024, so scale it
11
- #define def_hdr float(9.f) // hight luminance range float(3.h)
12
- #define def_hdr_clip float(0.75f) //
10
+ #define def_distort float(0.05f) // we get -0.5 .. 0.5 range, this is -512 .. 512 for 1024, so scale it
11
+ #define def_hdr float(9.f) // hight luminance range float(3.h)
12
+ #define def_hdr_clip float(0.75f) //
13
13
14
14
#define LUMINANCE_VECTOR float3(0.3f, 0.38f, 0.22f)
15
15
16
16
//////////////////////////////////////////////////////////////////////////////////////////
17
- #ifndef SMAP_size
18
- #define SMAP_size 1024
17
+ // skyloader: if you want to resize smaps in renderer, then do not forget to change this file too
18
+ #ifndef SMAP_QUALITY
19
+ const float SMAP_size = 2048.f ;
20
+ #elif SMAP_QUALITY == 1
21
+ const float SMAP_size = 1536.f ;
22
+ #elif SMAP_QUALITY == 2
23
+ const float SMAP_size = 2048.f ;
24
+ #elif SMAP_QUALITY == 3
25
+ const float SMAP_size = 2560.f ;
26
+ #elif SMAP_QUALITY == 4
27
+ const float SMAP_size = 3072.f ;
28
+ #elif SMAP_QUALITY == 5
29
+ const float SMAP_size = 4096.f ;
19
30
#endif
20
- #define PARALLAX_H 0.02
21
- #define parallax float2(PARALLAX_H, -PARALLAX_H/2)
31
+ //////////////////////////////////////////////////////////////////////////////////////////
32
+ #define PARALLAX_H float(0.02f)
33
+ #define parallax float2(PARALLAX_H, -PARALLAX_H/2)
22
34
//////////////////////////////////////////////////////////////////////////////////////////
23
35
24
- #endif // common_defines_h_included
36
+ #endif // common_defines_h_included
0 commit comments