I'm not a fan of shadowing params, why not just Color3 weight = w * comp->w ? Or maybe you want to avoid changing the other lines. Just thinking out loud, up to you.