Fix T40903: Rendering: Alpha Channel is Broken

This commit is contained in:
Sergey Sharybin 2014-07-01 22:11:44 +06:00
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.
1 changed files with 6 additions and 1 deletions

View File

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