add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
24
gamedata/shaders/d3d11/common_defines.hlsli
Normal file
24
gamedata/shaders/d3d11/common_defines.hlsli
Normal file
|
|
@ -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_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.h) // hight luminance range float(3.h)
|
||||
#define def_hdr_clip float(0.75h) //
|
||||
|
||||
#define LUMINANCE_VECTOR float3(0.3f, 0.38f, 0.22f)
|
||||
|
||||
#if defined(SM_5) || defined(SM_4_1)
|
||||
#define TEXTURE2DMS(a, b) Texture2DMS<a>
|
||||
#else
|
||||
#define TEXTURE2DMS(a, b) Texture2DMS<a, b>
|
||||
#endif
|
||||
|
||||
#ifndef SMAP_size
|
||||
#define SMAP_size 1024
|
||||
#endif
|
||||
|
||||
#endif // common_defines_h_included
|
||||
Loading…
Add table
Add a link
Reference in a new issue