Skip to content

Commit

Permalink
Revert sampler to clamp to fix screen artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
colinswrath committed Dec 18, 2024
1 parent 8887cb7 commit 3058ce9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Deferred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ void Deferred::SetupResources()

D3D11_SAMPLER_DESC samplerDesc = {};
samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR;
samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP;
samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP;
samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP;
samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_CLAMP;
samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_CLAMP;
samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_CLAMP;
samplerDesc.MaxAnisotropy = 1;
samplerDesc.MinLOD = 0;
samplerDesc.MaxLOD = D3D11_FLOAT32_MAX;
Expand Down

0 comments on commit 3058ce9

Please sign in to comment.