diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-26 14:08:40 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2022-09-26 14:08:40 -0400 |
commit | 7332c3e56ad51c05aa9f7779feb4d79364e7c513 (patch) | |
tree | 90eb13730789db492b4a3c8d4be8462cd1512361 /engine/xe_image.cpp | |
parent | fixed chunk meshing due to using unsigned int (diff) | |
download | minecraftvulkan-7332c3e56ad51c05aa9f7779feb4d79364e7c513.tar.gz minecraftvulkan-7332c3e56ad51c05aa9f7779feb4d79364e7c513.tar.bz2 minecraftvulkan-7332c3e56ad51c05aa9f7779feb4d79364e7c513.zip |
undo nearest neighbor
Diffstat (limited to 'engine/xe_image.cpp')
-rw-r--r-- | engine/xe_image.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/xe_image.cpp b/engine/xe_image.cpp index 64538ce..7be2b3b 100644 --- a/engine/xe_image.cpp +++ b/engine/xe_image.cpp @@ -223,9 +223,9 @@ void Image::createTextureSampler() { samplerInfo.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO; samplerInfo.magFilter = VK_FILTER_LINEAR; samplerInfo.minFilter = VK_FILTER_LINEAR; - samplerInfo.addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT; - samplerInfo.addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT; - samplerInfo.addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT; + 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.anisotropyEnable = VK_TRUE; samplerInfo.maxAnisotropy = xeDevice.getAnisotropy(); samplerInfo.borderColor = VK_BORDER_COLOR_INT_OPAQUE_BLACK; |