Skip to content

Commit dccc7ae

Browse files
committed
shaders: Add distort.ps.
1 parent a03a90c commit dccc7ae

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

res/gamedata/shaders/gl/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include "shared\common.h"
55

6-
//include "common_defines.h"
6+
#include "common_defines.h"
77
//include "common_policies.h"
88
#include "common_iostructs.h"
99
#include "common_samplers.h"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef common_defines_h_included
2+
#define common_defines_h_included
3+
4+
//////////////////////////////////////////////////////////////////////////////////////////
5+
// Defines //
6+
#define def_gloss float(2.f /255.f)
7+
#define def_aref float(200.f/255.f)
8+
#define def_dbumph float(0.333f)
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) //
13+
14+
#define LUMINANCE_VECTOR float3(0.3f, 0.38f, 0.22f)
15+
16+
//////////////////////////////////////////////////////////////////////////////////////////
17+
#ifndef SMAP_size
18+
#define SMAP_size 1024
19+
#endif
20+
#define PARALLAX_H 0.02
21+
#define parallax float2(PARALLAX_H, -PARALLAX_H/2)
22+
//////////////////////////////////////////////////////////////////////////////////////////
23+
24+
#endif // common_defines_h_included

res/gamedata/shaders/gl/distort.ps

438 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)