Skip to content

Commit

Permalink
fix: revert sampler to clamp to fix screen artifacts (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinswrath authored Dec 18, 2024
1 parent 13ec12c commit a716258
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 a716258

Please sign in to comment.