mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 08:15:59 -10:00
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:
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
|
||||
Reference in new issue
Block a user