-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
I am trying to figure out how to return an RGBA image without combining with the solid background colour inside the rasterizer.
I've adjusted the out_color variable to have an extra channel, and in the forward pass (forward.cu) it is simple enough to make the change:
if (inside)
{
final_T[pix_id] = T;
n_contrib[pix_id] = last_contributor;
for (int ch = 0; ch < CHANNELS; ch++)
out_color[ch * H * W + pix_id] = C[ch]; // + T * bg_color[ch];
out_color[CHANNELS * H * W + pix_id] = 1-T;
}But I am unsure about how to make the change in the backward pass. Any ideas how this might be implemented?
GalDude33, boqian-li, oneThousand1000, HaedamOh and NapatAomsinS
Metadata
Metadata
Assignees
Labels
No labels