diff --git a/res/gamedata/shaders/gl/common.h b/res/gamedata/shaders/gl/common.h index f0c4cfbc17f..80c70acf619 100644 --- a/res/gamedata/shaders/gl/common.h +++ b/res/gamedata/shaders/gl/common.h @@ -3,7 +3,7 @@ #include "shared\common.h" -//include "common_defines.h" +#include "common_defines.h" //include "common_policies.h" #include "common_iostructs.h" #include "common_samplers.h" diff --git a/res/gamedata/shaders/gl/common_defines.h b/res/gamedata/shaders/gl/common_defines.h new file mode 100644 index 00000000000..ae49a02cc76 --- /dev/null +++ b/res/gamedata/shaders/gl/common_defines.h @@ -0,0 +1,24 @@ +#ifndef common_defines_h_included +#define common_defines_h_included + +////////////////////////////////////////////////////////////////////////////////////////// +// Defines // +#define def_gloss float(2.f /255.f) +#define def_aref float(200.f/255.f) +#define def_dbumph float(0.333f) +#define def_virtualh float(0.05f) // 5cm +#define def_distort float(0.05f) // we get -0.5 .. 0.5 range, this is -512 .. 512 for 1024, so scale it +#define def_hdr float(9.f) // hight luminance range float(3.h) +#define def_hdr_clip float(0.75f) // + +#define LUMINANCE_VECTOR float3(0.3f, 0.38f, 0.22f) + +////////////////////////////////////////////////////////////////////////////////////////// +#ifndef SMAP_size +#define SMAP_size 1024 +#endif +#define PARALLAX_H 0.02 +#define parallax float2(PARALLAX_H, -PARALLAX_H/2) +////////////////////////////////////////////////////////////////////////////////////////// + +#endif // common_defines_h_included \ No newline at end of file diff --git a/res/gamedata/shaders/gl/distort.ps b/res/gamedata/shaders/gl/distort.ps new file mode 100644 index 00000000000..b76a37def07 Binary files /dev/null and b/res/gamedata/shaders/gl/distort.ps differ