From 521c21c3a624b3a5dfdd1545bf1bba45359263d4 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 21 Oct 2020 01:38:51 -0400 Subject: [PATCH] CThermalColdFilter: Fix UV interpolation --- Runtime/Graphics/Shaders/CThermalColdFilter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Graphics/Shaders/CThermalColdFilter.cpp b/Runtime/Graphics/Shaders/CThermalColdFilter.cpp index 9692f3cd2..a840657ef 100644 --- a/Runtime/Graphics/Shaders/CThermalColdFilter.cpp +++ b/Runtime/Graphics/Shaders/CThermalColdFilter.cpp @@ -20,7 +20,8 @@ struct CThermalColdFilterPipeline : pipeline, hsh::float4 kRGBToYPrime{0.257f, 0.504f, 0.098f, 0.f}; this->position = hsh::float4(vbo->m_pos, 0.f, 1.f); - hsh::float4 noiseTexel = noiseTex.read(Lookup8BPP(vbo->m_uvNoise, ubo->m_randOff)); + hsh::float2 uvNoise HSH_VAR_STAGE(fragment) = vbo->m_uvNoise; + hsh::float4 noiseTexel = noiseTex.read(Lookup8BPP(uvNoise, ubo->m_randOff)); hsh::float2 indCoord = (hsh::float3x3(ubo->m_indMtx[0].xyz(), ubo->m_indMtx[1].xyz(), ubo->m_indMtx[2].xyz()) * hsh::float3(noiseTexel.x - 0.5f, noiseTexel.w - 0.5f, 1.f)) .xy();