diff --git a/WickedEngine/wiTerrain.cpp b/WickedEngine/wiTerrain.cpp index 7fb52a5b8..fb56fbc53 100644 --- a/WickedEngine/wiTerrain.cpp +++ b/WickedEngine/wiTerrain.cpp @@ -1276,9 +1276,12 @@ namespace wi::terrain SamplerDesc samplerDesc; samplerDesc.filter = Filter::ANISOTROPIC; samplerDesc.max_anisotropy = 4; - samplerDesc.address_u = TextureAddressMode::CLAMP; - samplerDesc.address_v = TextureAddressMode::CLAMP; - samplerDesc.address_w = TextureAddressMode::CLAMP; + // Note: using wrap mode by intention! + // Terrain itself doesn't need wrap mode, but decals will reuse the base material's sampler + // and decals can use wrapped textures (texmuladd) + samplerDesc.address_u = TextureAddressMode::WRAP; + samplerDesc.address_v = TextureAddressMode::WRAP; + samplerDesc.address_w = TextureAddressMode::WRAP; bool success = device->CreateSampler(&samplerDesc, &sampler); assert(success); } diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index c465441af..7a27a9d64 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -9,7 +9,7 @@ namespace wi::version // minor features, major updates, breaking compatibility changes const int minor = 71; // minor bug fixes, alterations, refactors, updates - const int revision = 671; + const int revision = 672; const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);