internal/builtinshader: fix comments

This commit is contained in:
Hajime Hoshi 2022-10-03 01:09:24 +09:00
parent 61cabbf2e7
commit b489548963

View File

@ -109,7 +109,7 @@ func Fragment(position vec4, texCoord vec2, color vec4) vec4 {
// Un-premultiply alpha. // Un-premultiply alpha.
// When the alpha is 0, 1-sign(alpha) is 1.0, which means division does nothing. // When the alpha is 0, 1-sign(alpha) is 1.0, which means division does nothing.
clr.rgb /= clr.a + (1-sign(clr.a)) clr.rgb /= clr.a + (1-sign(clr.a))
// Apply the clr matrix or scale. // Apply the clr matrix.
clr = (ColorMBody * clr) + ColorMTranslation clr = (ColorMBody * clr) + ColorMTranslation
// Premultiply alpha // Premultiply alpha
clr.rgb *= clr.a clr.rgb *= clr.a