code refactoring
This commit is contained in:
@@ -20,12 +20,6 @@ layout(set = 3, binding = 0) uniform TextConfig
|
||||
|
||||
void main()
|
||||
{
|
||||
// interesting results
|
||||
//float distance = texture(texSampler, texCoord).r;
|
||||
//float alpha = smoothstep(textConfig.threshold - textConfig.smoothing, textConfig.threshold + textConfig.smoothing, distance);
|
||||
//outColor = vec4(textConfig.textColor) * alpha;
|
||||
|
||||
|
||||
vec4 sampled = vec4(1.0, 1.0, 1.0, texture(texSampler, texCoord).r);
|
||||
outColor = vec4(textConfig.textColor) * sampled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user