Fix T40903: Rendering: Alpha Channel is Broken
This commit is contained in:
parent
6c6fa749f6
commit
ecc2e298e8
Notes:
blender-bot
2023-02-14 10:23:41 +01:00
Referenced by issue #41094, Ping pong action works wrong when GLSL mode and Sun buffer shadow are enabled in BGE. Referenced by issue #40903, Rendering: Alpha Channel is Broken. Referenced by issue #40903, Rendering: Alpha Channel is Broken.
|
@ -207,7 +207,12 @@ void RenderLayersAlphaProg::executePixelSampled(float output[4], float x, float
|
|||
zero_v4(output);
|
||||
}
|
||||
else {
|
||||
doInterpolation(output, x, y, sampler);
|
||||
float temp[4];
|
||||
doInterpolation(temp, x, y, sampler);
|
||||
output[0] = temp[3];
|
||||
output[1] = 0.0f;
|
||||
output[2] = 0.0f;
|
||||
output[3] = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue