diff --git a/Game.cpp b/Game.cpp index 849f1f2..0b330c9 100644 --- a/Game.cpp +++ b/Game.cpp @@ -97,6 +97,17 @@ void Game::LoadShaders() void Game::LoadTextures() { + Microsoft::WRL::ComPtr sampler; + + D3D11_SAMPLER_DESC sampDesc = {}; + sampDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; + sampDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; + sampDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; + sampDesc.Filter = D3D11_FILTER_ANISOTROPIC; + sampDesc.MaxAnisotropy = 16; + sampDesc.MaxLOD = D3D11_FLOAT32_MAX; + device->CreateSamplerState(&sampDesc, sampler.GetAddressOf()); + Microsoft::WRL::ComPtr deepFloorAlbedo, floorAlbedo;