From 0214370de837f1047db4b984cdd4f25710ce09ef Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 21 Oct 2020 01:38:22 -0400 Subject: [PATCH] CRandomStaticFilter: Fix UV interpolation --- Runtime/Graphics/Shaders/CRandomStaticFilter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Graphics/Shaders/CRandomStaticFilter.cpp b/Runtime/Graphics/Shaders/CRandomStaticFilter.cpp index b60b76bf5..37cc6d434 100644 --- a/Runtime/Graphics/Shaders/CRandomStaticFilter.cpp +++ b/Runtime/Graphics/Shaders/CRandomStaticFilter.cpp @@ -41,7 +41,8 @@ struct CRandomStaticFilterPipeline CRandomStaticFilterPipeline(hsh::vertex_buffer vbo, hsh::uniform_buffer ubo, hsh::texture2d tex) { this->position = hsh::float4(vbo->m_pos, 0.f, 1.f); - hsh::float4 color = tex.read(Lookup8BPP(vbo->m_uv, ubo->randOff)) * ubo->color; + hsh::float2 uv HSH_VAR_STAGE(fragment) = vbo->m_uv; + hsh::float4 color = tex.read(Lookup8BPP(uv, ubo->randOff)) * ubo->color; if constexpr (CookieCutter) { if (color.w < ubo->discardThres) { hsh::discard();