Vulkan: sample the thruster distortion map with its repeat sampler (#7940)

VulkanDistortion creates a linear/repeat sampler for its noise textures,
matching OpenGL's GL_REPEAT on Distortion_texture, but getTextureInfo
handed out the post-processing linearSampler instead, which clamps. The
sampler that was built for it is now the one used.

Co-authored-by: Dustinspace217 <[email protected]>
This commit is contained in:
dustinspace217andDustinspace217 authored and GitHub committed 2026-11-04 18:20:53 +01:00
1 parent 259a58de60
commit 81b9edc2e3
1 file changed
+1 -2
@@ -272,8 +272,7 @@ vk::DescriptorImageInfo VulkanDistortion::getTextureInfo() const
// Distortion_texture[!Distortion_switch] binding for thrusters).
// After update() toggles the switch, m_switch points to the old read
// source, which is the texture that was just written.
return {m_ctx->linearSampler, m_tex[m_switch].view,
vk::ImageLayout::eShaderReadOnlyOptimal};
return {m_sampler, m_tex[m_switch].view, vk::ImageLayout::eShaderReadOnlyOptimal};
}
} // namespace graphics::vulkan