code refactoring

This commit is contained in:
ohyzha
2024-12-30 12:05:46 +02:00
parent 503e31947f
commit e8289c643b
10 changed files with 111 additions and 110 deletions

View File

@@ -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;
}