diff options
| author | 2016-08-13 20:30:40 +0200 | |
|---|---|---|
| committer | 2016-08-13 20:30:56 +0200 | |
| commit | 7dc76d6501b1ef8e342b71ec4212d31fd0955036 (patch) | |
| tree | 9c9788dd25839cc6fa18e0b8aa0ebb417cea5b8a /hlsl/bloom.fx | |
| parent | 0e799e0b9817da74810b4c3b5d17128017dda499 (diff) | |
- already fixed scanline issue also applied for swapped orientation (nw)
Diffstat (limited to 'hlsl/bloom.fx')
| -rw-r--r-- | hlsl/bloom.fx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/hlsl/bloom.fx b/hlsl/bloom.fx index db23995d55b..42c65e6a45b 100644 --- a/hlsl/bloom.fx +++ b/hlsl/bloom.fx @@ -273,14 +273,11 @@ VS_OUTPUT vs_main(VS_INPUT Input) Output.Color = Input.Color; - float2 TexCoord = Input.TexCoord; - TexCoord += 0.5f / TargetDims; // half texel offset correction (DX9) + Output.TexCoord = Input.TexCoord; + Output.TexCoord += 0.5f / TargetDims; // half texel offset correction (DX9) - Output.TexCoord = TexCoord.xy; - - TexCoord += 0.5f / SourceDims; - - Output.BloomCoord = TexCoord.xy; + Output.BloomCoord = Output.TexCoord; + Output.BloomCoord += 0.5f / SourceDims; return Output; } |
