summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-30 00:25:12 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-30 00:25:12 -0400
commit5d3b1bc1752e1e684bad8c0a8a1e11be99493e5e (patch)
treea2e8f5f4ddc9f7966ab77520d5cbd0d3a36a9c49 /engine
parentdescriptor pool final fix (diff)
downloadminecraftvulkan-5d3b1bc1752e1e684bad8c0a8a1e11be99493e5e.tar.gz
minecraftvulkan-5d3b1bc1752e1e684bad8c0a8a1e11be99493e5e.tar.bz2
minecraftvulkan-5d3b1bc1752e1e684bad8c0a8a1e11be99493e5e.zip
greedy meshing
Diffstat (limited to 'engine')
-rw-r--r--engine/xe_image.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/xe_image.cpp b/engine/xe_image.cpp
index cd53663..9d6bb9b 100644
--- a/engine/xe_image.cpp
+++ b/engine/xe_image.cpp
@@ -265,9 +265,9 @@ void Image::createTextureSampler(bool anisotropic) {
samplerInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
samplerInfo.magFilter = VK_FILTER_NEAREST;
samplerInfo.minFilter = VK_FILTER_NEAREST;
- samplerInfo.addressModeU = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
- samplerInfo.addressModeV = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
- samplerInfo.addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
+ samplerInfo.addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT;
+ samplerInfo.addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT;
+ samplerInfo.addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT;
samplerInfo.anisotropyEnable = anisotropic ? VK_TRUE : VK_FALSE;
samplerInfo.maxAnisotropy = xeDevice.getAnisotropy();
samplerInfo.borderColor = VK_BORDER_COLOR_INT_OPAQUE_BLACK;