diff options
author | ImJezze <jezze@gmx.net> | 2015-10-18 19:16:46 +0200 |
---|---|---|
committer | ImJezze <jezze@gmx.net> | 2015-10-18 19:16:46 +0200 |
commit | 7eb83c31a5cdcb13a3e596555ecf3a8597f4b5c9 (patch) | |
tree | 7ad5b0c1af4e39b4487fa74eeb9a8ad23fd8d594 /hlsl/post.fx | |
parent | 2577b29602d806268755e651ae0efa991975ed20 (diff) |
Artwork Support
- added special post.fx and distortion.fx shader, which support enabled
artworks, but they cannot apply some of the previously implemented
corrections (e.g. bloom staircase artifacts when screen is curved,
elliptic rounded corners when aspect ratio is not 4:3)
Diffstat (limited to 'hlsl/post.fx')
-rw-r--r-- | hlsl/post.fx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx index 1a49ab55d4d..70b374179c4 100644 --- a/hlsl/post.fx +++ b/hlsl/post.fx @@ -56,6 +56,16 @@ struct PS_INPUT float2 ScreenCoord : TEXCOORD1; }; +//----------------------------------------------------------------------------- +// Constants +//----------------------------------------------------------------------------- + +static const float PI = 3.1415927f; + +//----------------------------------------------------------------------------- +// Functions +//----------------------------------------------------------------------------- + bool xor(bool a, bool b) { return (a || b) && !(a && b); @@ -127,8 +137,6 @@ uniform float2 ShadowUV = float2(0.25f, 0.25f); uniform float3 Power = float3(1.0f, 1.0f, 1.0f); uniform float3 Floor = float3(0.0f, 0.0f, 0.0f); -static const float PI = 3.1415927f; - float4 ps_main(PS_INPUT Input) : COLOR { float2 ScreenTexelDims = 1.0f / ScreenDims; |