CTextSupportShader: Fix color mul

This commit is contained in:
Luke Street 2020-10-21 01:38:36 -04:00
parent 0214370de8
commit 4f577c586d
1 changed files with 2 additions and 1 deletions

View File

@ -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<float>(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<CGuiWidget::EGuiModelDrawFlags::Alpha>;