From d15d53c728b4848e3ed74d66b9ab446811e1acee Mon Sep 17 00:00:00 2001 From: ImJezze Date: Sun, 7 Feb 2016 13:40:24 +0100 Subject: Fixed Bloom Level Alignment - fixed target dimensions of bloom levels, which results in a much better alignment especially for game with very low resolution (therefore current bloom settings might look a little less intense than before) - small cleanups (nw) --- hlsl/prescale.fx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hlsl/prescale.fx') diff --git a/hlsl/prescale.fx b/hlsl/prescale.fx index 846c02577ce..6faa659e6d0 100644 --- a/hlsl/prescale.fx +++ b/hlsl/prescale.fx @@ -54,13 +54,13 @@ uniform float2 TargetDims; VS_OUTPUT vs_main(VS_INPUT Input) { VS_OUTPUT Output = (VS_OUTPUT)0; - + Output.Position = float4(Input.Position.xyz, 1.0f); Output.Position.xy /= ScreenDims; Output.Position.y = 1.0f - Output.Position.y; // flip y Output.Position.xy -= 0.5f; // center Output.Position.xy *= 2.0f; // zoom - + Output.TexCoord = Input.TexCoord; Output.TexCoord += 0.5f / TargetDims; // half texel offset correction (DX9) -- cgit v1.2.3