diff options
author | 2016-05-05 22:46:56 +0200 | |
---|---|---|
committer | 2016-05-05 22:46:56 +0200 | |
commit | bef70746af4168c68e05ba2fbb3922bd14dfbcaa (patch) | |
tree | 7f8099ae6de411ac17de71c1fdb30fa49334d18d | |
parent | b4b65439293f160f195e8fec9124e6a1bc43881b (diff) |
Fixed half texel offset of 'source' shadow mask tile mode
-rw-r--r-- | hlsl/post.fx | 4 | ||||
-rw-r--r-- | ini/presets/gameboy.ini | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx index dc7c4bd8322..eddc4bb8da5 100644 --- a/hlsl/post.fx +++ b/hlsl/post.fx @@ -194,7 +194,9 @@ float2 GetShadowCoord(float2 QuadCoord, float2 SourceCoord) : shadowFrac.xy; float2 shadowCoord = (shadowFrac * shadowUV); - shadowCoord += 0.5f / shadowDims; // fix half texel offset (DX9) + shadowCoord += ShadowTileMode == 0 + ? 0.5f / shadowDims // fix half texel offset (DX9) + : 0.0f; return shadowCoord; } diff --git a/ini/presets/gameboy.ini b/ini/presets/gameboy.ini index f24453232ce..088af358ee1 100644 --- a/ini/presets/gameboy.ini +++ b/ini/presets/gameboy.ini @@ -8,8 +8,8 @@ shadow_mask_x_count 2 shadow_mask_y_count 2 shadow_mask_usize 0.5 shadow_mask_vsize 0.5 -shadow_mask_uoffset 0.0 -shadow_mask_voffset 0.0 +shadow_mask_uoffset 0.05 +shadow_mask_voffset 0.05 distortion 0.0 cubic_distortion 0.0 distort_corner 0.0 |