From 4f577c586d4ba85e2410b4c92324885cea131def Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 21 Oct 2020 01:38:36 -0400 Subject: [PATCH] CTextSupportShader: Fix color mul --- Runtime/Graphics/Shaders/CTextSupportShader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/Graphics/Shaders/CTextSupportShader.cpp b/Runtime/Graphics/Shaders/CTextSupportShader.cpp index e55271c6e..bbcf562a9 100644 --- a/Runtime/Graphics/Shaders/CTextSupportShader.cpp +++ b/Runtime/Graphics/Shaders/CTextSupportShader.cpp @@ -39,7 +39,8 @@ struct CTextSupportShaderCharacterPipeline hsh::float4 fontColor = ubo->m_uniformColor * vbo->m_fontColor; hsh::float4 outlineColor = ubo->m_uniformColor * vbo->m_outlineColor; hsh::float4 texel = tex.sample(vbo->m_uv[this->vertex_id]); - this->color_out[0] = (fontColor * texel.x + outlineColor * texel.y) * vbo->m_mulColor; + hsh::float4 color = fontColor * texel.x + outlineColor * texel.y; + this->color_out[0] = color * vbo->m_mulColor; } }; template struct CTextSupportShaderCharacterPipeline;