Skip to content

Commit

Permalink
Update cAutoExposure.fx
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Jul 7, 2024
1 parent 342f15e commit 04fd90e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shaders/cAutoExposure.fx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ float4 PS_Blit(VS2PS_Quad Input) : SV_TARGET0
if (_Meter == 1)
{
Tex = (Tex * 2.0) - 1.0;
// Expand the UV so [-1, 1] fills the shape of its input texture instead of output
#if BUFFER_WIDTH > BUFFER_HEIGHT
Tex.x /= ASPECT_RATIO;
#else
Expand Down Expand Up @@ -100,6 +101,8 @@ float3 PS_Exposure(VS2PS_Quad Input) : SV_TARGET0
float2 Pos = (Input.Tex0 * 2.0) - 1.0;
Pos -= float2(_Offset.x, -_Offset.y);
Pos /= _Scale;

// Shrink the UV so [-1, 1] fills a square
#if BUFFER_WIDTH > BUFFER_HEIGHT
Pos.x *= ASPECT_RATIO;
#else
Expand Down

0 comments on commit 04fd90e

Please sign in to comment.