A red texel is completely opaque. The adjacent blue is completely transparent. Separately, the second one should not add anything to the image, however, after filtering, a bluish border may appear between them. This requires neither faulty video memory nor lost shader precision. It is enough to average the independent RGB and alpha, and then apply normal blending. The invisible color will have time to fall into the intermediate value before zero opacity should have removed its contribution.
This is a convenient problem for a short mathematical analysis. All numbers below are hypothetical values in a linear color space; The editorial team did not measure the image of a specific video card. Let’s separate the color from the color contribution. Let’s denote the RGB triple by C, and the opacity from zero to one by a. In straight alpha, these quantities are stored independently. The associated representation, premultiplied alpha, stores c = a × C instead of C. The value of alpha itself does not change.
The difference is described in Microsoft documentation about alpha modes. It would be incorrect to call premultiplication an additional channel: the meaning of the three existing components changes, and not the number of pixel components. Four numbers with the same storage type can therefore mean different things. The representation convention must be maintained from image preparation to the operation that consumes the result. The RGBA format itself does not tell you whether the color has already been multiplied by opacity.
Averaging that changes the answer
Let’s write the original texels in straight form: red A = (1, 0, 0, 1), transparent blue B = (0, 0, 1, 0). Sampling exactly in the middle with equal weights gives (0.5, 0, 0.5, 0.5). If this result is considered a straight color and placed on top of an opaque black background, multiplying RGB by alpha leaves (0.25, 0, 0.25). The result contains a blue contribution, although the only original blue texel was completely transparent. The arithmetic is correct for the selected operations; The order of operations itself was unexpected.
Now let’s prepare the associated data before sampling. Red A remains (1, 0, 0, 1) and B becomes (0, 0, 0, 0). Their average is (0.5, 0, 0, 0.5). To place it on top of black, this RGB already contains the required weight; there is no need to multiply it by alpha again. It turns out (0.5, 0, 0): red with half the contribution, without blue. The zero contribution of the transparent neighbor was preserved during linear averaging, since it was the contributions that were averaged, and not the independently hidden colors.
The algebra makes the distinction concise. First averaging colors and opacity and then multiplying the results is not the same as averaging the products of color and opacity. In general, the product of averages is not equal to the average of products. It is this inequality that connects this small example with texture interpolation. Greater numerical precision does not make these operations interchangeable. Even perfect arithmetic will reproduce the difference because it honestly evaluates different formulas representing different assumptions about the content.
This sets a practical limit on a fix inside the fragment shader. If the texture sampler has already averaged straight RGBA, multiplying the returned RGB by alpha occurs too late to restore the original average of the contributions. Some of the information about the connection of each original color with its alpha has already been lost. For proper linear filtering, the associated form is prepared before the operation that mixes the texels. The word premultiplied in the name of the final buffer does not prove that the earlier samples followed this order.

A similar problem arises when building mip levels. The reduced image should represent the total contribution of the original area, including its opacity. If you sequentially average independent colors of transparent areas and only take alpha into account at the very end, hidden values can affect the border. Here we are talking about the contents of the filtered components, and not about choosing the appropriate mip level based on the size of the screen footprint. Even a correctly chosen scale can contain incorrectly prepared data. A good sampler doesn’t guess the lost convention about their meaning.
Often, for straight textures, invisible RGB colors are filled with the colors of the nearest visible edge. This helps reduce specific artifacts and can be part of a constrained workflow. But this technique does not prove the general equality of the two formulas. With complex borders, variable opacity, and further processing, the question of proper weights remains. Fixing the content of transparent texels and choosing a representation solve related but different problems. You cannot declare any straight resource incorrect: you need to know what operations will be performed on it and what results the entire process must preserve.
What color goes into source-over
For associated values, the source-over operation is written as c_out = c_src + (1 − a_src) × c_dst. The opacity of the result is a_out = a_src + (1 − a_src) × a_dst. Here both source and destination are presented in a consistent manner. W3C Compositing and Blending Level 1 lays out the rules for composition; the edition cited is the Candidate Recommendation Draft dated March 21, 2024. Its status as a working document should not be turned into a statement about the new standard of today.
If the source stores straight RGB, its contribution to this formula must first be obtained by multiplying by a_src. But a transparent destination also cannot be imperceptibly considered direct RGB and substituted in place of c_dst. Compositing over a partially transparent background requires consistent treatment of both contributions. For an opaque destination, a_dst is equal to one, which is why many simplified examples look convincing. They do not establish the correctness of the same short formula for an intermediate transparent render target that will later be composited again.
In the graphics API, this is expressed by separate color coefficients and alpha. The Vulkan framebuffer blending specification describes the available factors and operations. For ordinary premultiplied source-over, addition uses a source factor of one and a destination factor of one minus the source alpha. If instead of one we again take the alpha of the source for RGB, the contribution will be multiplied a second time. In our red example, half the contribution will become a quarter. The dark border then appears for a different reason, although outwardly it also seems to be a problem with the transparent edge.
The reverse mismatch has an equally specific effect. Straight RGB with a coefficient of ONE will give too much contribution to the translucent fragment. A setting that is useful for associated data does not correct data with other semantics. And it is the output of the shader that has to be checked: the source file could be direct, but the shader has already performed the conversion, or an intermediate pass could have canceled it. The file name and state of the blend unit describe different places in the path. Correctness at one point does not establish correctness at the other if the components between them have received a new meaning.
Converting back to straight requires dividing c by a with non-zero alpha. When a = 0, the original straight color cannot be restored: all ordinary colors after multiplication turned into one zero contribution. This is not an accidental format defect, but a loss of information that is not needed for the usual composition of transparent content. For very small alpha, division increases rounding errors. Therefore, multiple back-and-forth conversions can degrade the data, especially when storage accuracy is limited. The format is chosen taking into account further operations, and not just the convenience of one viewing.
Color space imposes another requirement here. Our calculations were performed on linear components. It is not possible to multiply nonlinearly encoded sRGB values by alpha and treat them as linear contributions. Resource preparation must coordinate color decoding, multiplication, and subsequent encoding for storage. The presence of alpha does not cancel the nonlinearity of RGB. However, this is a separate issue: correct conversion to linear space does not correct late multiplication after incorrect interpolation of straight components. For a correct answer, you need both the correct quantities and the correct order of operations on them.
The associated form also does not allow transparent layers to be rearranged. Let’s take red and blue with alpha 0.5 each. Red over blue contributes (0.5, 0, 0.25), and blue over red contributes (0.25, 0, 0.5). In both cases, the resulting alpha is 0.75. The same overall opacity does not mean the same RGB. Source-over is generally non-commutative. Therefore, representing texture correctly does not eliminate the problem of drawing order, depth writes, and technique selection for intersecting transparent geometry.
On the other hand, the composition of ordinary premultiplied source-over layers is associative in ideal arithmetic with an unchanged order. This allows adjacent groups to be merged without changing the mathematical result, as long as no other operations, group boundaries, or color transformations are added. Limited precision and rounding may introduce implementation differences. Associativity should not be confused with commutativity: permission to place brackets differently does not give the right to swap red and blue. These two properties answer different questions about a valid graphics pass design.
Alpha can also represent pixel coverage. At the edge of an opaque figure, half the area belongs to the figure and half to the background; the averaged contribution is similar to the translucent sample. This explains the benefit of the same representation for smooth edges, but does not make coverage and physical transparency into one phenomenon. When two objects overlap, assumptions about their spatial overlap are important. A single alpha number does not store all the geometry within the pixel that was discarded during averaging. A more detailed multisample representation answers the other part of the question.
For an ordinary non-negative color with components no higher than one, the associated RGB does not exceed alpha component-wise. This relationship is useful when understanding data of a limited range. However, in the HDR process, color components can be higher than unity, and some effects deliberately combine added light with transparency. Then a simple channel comparison rule is not a universal validator of all resources. Microsoft documentation explicitly notes additive behavior at certain component ratios. It is useful to first establish the purpose of the format and pass, and then decide whether a particular value indicates an error or an intended light contribution.
Conventional transparency has its limits as a model. Tinted glass, scattering, refraction, and path-length dependence of light transmission are not completely described by scalar alpha alone. You cannot demand a physically accurate result for any material from a simple source-over. But the limitations of the model do not make its arithmetic arbitrary. For an image, text or particle rendering task, it is useful to preserve the precise meaning of the components. This allows you to separate a data preparation error from a situation where the transparency model itself is too simple for the desired optical effect.
Let’s go back to the transparent blue texel. Its RGB could be useful to the source image editor, but in a normal composition its color contribution was zero. The problem appeared when GPU averaged the independent parameters, and the application read the resulting product as the average contribution. Premultiplication preserves this contribution in the filtered value itself. Sources verified October 30, 2026; numbers remain an analytical example. Invisible blue does not have to affect the red boundary if the data and operations have agreed from the outset what exactly is considered a visible color.



