mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 08:15:59 -10:00
honor material texture addressing in Vulkan
Vulkan never read the material's texture addressing, so MR_FORCE_CLAMP skyboxes were sampled with a wrapping sampler, producing seams. Set it on every material draw, as OpenGL does in opengl_tnl_set_material(). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
76219fd1e2
commit
afd92bb3f9
1 file changed
+3
@@ -1281,6 +1281,9 @@ bool VulkanDrawManager::applyMaterial(material* mat, primitive_type prim_type, v
|
||||
|
||||
m_frameStats.applyMaterialCalls++;
|
||||
|
||||
// Like opengl_tnl_set_material(), every material draw sets the texture addressing (e.g. MR_FORCE_CLAMP skyboxes)
|
||||
setTextureAddressing(mat->get_texture_addressing());
|
||||
|
||||
// Build pipeline configuration from material
|
||||
PipelineConfig config = buildPipelineConfig(mat, prim_type);
|
||||
|
||||
|
||||
Reference in new issue
Block a user