# Tag Info

### How to perform additive blending in Metal. What do these terms mean?

The “blend factors” are the amount that the specified component is multiplied by while blending. “Destination” is the existing content that’s being blended “on top of”, while “source” is the new ...
• 2,222
Accepted

### How is the alpha value treated when blending?

How does it make sense to have a half opaque object in front of a fully opaque object result in something that is not fully opaque again? The problem here is one of concepts. The alpha component of a ...
• 9,842
Accepted

### Alpha blending in linear colour space

Just turning the comments into a fully-fledged answer as it may prove useful to others. IMHO, the alpha channel should always be linear and treated as such. You described blending a black quad over ...
• 4,296

### Given a composited image, is it possible to find the color and opacity of an overlaid shape?

You can solve the colors by solving a system of linear equations if you make few assumptions: The alpha of the color wheel is constant (i.e. same for all colors in the wheel) The beige background ...
• 3,636
Accepted

### Can't make blending work

I notice that you've enabled blending and depth testing and are drawing with a non-opaque alpha channel. What's going to happen is that if you don't draw from back to front (relative to the camera), ...
• 3,421

### Is it possible to override or disable blending per pixel

You seem to be using additive blending against its purpose. Additive blending is supposed to represent light from multiple sources being combined. It is not physically possible for one source of light ...
• 9,842
1 vote
Accepted

### What's the intuition behind color burn and other blend modes?

In general, notice that there is no particular reason for a blend mode or other color processing formula in an image manipulation program to be reasonable “from first principles” at all. All we care ...
• 1,196
1 vote

### how to blend RGB components separately

Since you only want full brightness and no brightness, sure you can. Red channel on: additive blend with red Red channel off: multiplicative blend with cyan Blue channel on: additive blend with blue ...
1 vote

### How to calculate interpolation between multiple skeleton poses?

I will suggest something for the rotational part but I do not know how fast it is. Assume you have a 3D coordinate system centered at the pivoting point of the joint and fixed with respect to one of ...
• 211
1 vote
Accepted

### GL_SAMPLE_ALPHA_TO_COVERAGE and depth testing

(Promoting comment to answer) Do the faces have the same alpha value? That might generate the same coverage mask for the surfaces and, hence, only the closest one would be seen.
• 4,296
1 vote
Accepted

### Repeating alpha over/under operation multiple times

So taking source over as an example, the math works out to: dst = a * src + (1 - a) * dst Taking Nathan Reed's suggestion of replacing (1 - a) with ...
• 3,421
1 vote

### How to blend a segment of an image with another image

Move the child down slightly so the right foot is behind the shoulder. Reduce their size almost 50%. Blend only the outline of the child with the background, at most a few pixels. The men appear to be ...
• 256
1 vote

### How to perform additive blending in Metal. What do these terms mean?

Terminology The source color is the value written by the fragment/pixel shader. The destination color is the color from the image currently in the frame buffer (that will be overridden). Additive ...
• 1,074
1 vote

### What blend mode is this?

That looks like multiplying the front image by the luminance of the shirt behind it. There are multiple definitions of luminance but for a start, I think you could assume your data is sRGB and follow ...
• 1,585
1 vote

### Make Object created in a list blend in/dissolve out of a scene

It looks like there are a few steps to make this work: Linearly interpolate the alpha of the mesh from transparent to fully opaque, or vice versa. Note 1: It seems as if the alpha starts to fade a ...
• 163
1 vote

### Alpha blending between two overlapping semi-transparent shapes

I used Stencil Buffer to fixing your problem , you need a way for checking overlapping two or more shapes ...

Only top scored, non community-wiki answers of a minimum length are eligible