The alpha channel for pixels corresponding to an object with transmit !=
0 is set to fully opaque regardless of the actual transmit value.
I've tracked this down to compute_lighted_texture() in lighting.c
but I'm having trouble following why a lot of the changes were made.
line 4711 says
ResCol[TRANSM] = (0.30*AttCol[0] + 0.59*AttCol[1] + 0.11*AttCol[2]) *
FilCol[TRANSM];
but FilCol[TRANSM] is never changed from 0.0 as far as I can see.
There's a comment at line 4617
/* note FilCol[3] stays at 1.0, [4] stays at 0.0 */
Why is that?
Thanks for your time. And thanks for MegaPOV.
Post a reply to this message
|