Code refactor: remove emission and background closures, sum directly.
This commit is contained in:
@@ -56,8 +56,7 @@ class GenericEmissiveClosure : public CClosurePrimitive {
|
||||
public:
|
||||
void setup(ShaderData *sd, int /* path_flag */, float3 weight)
|
||||
{
|
||||
closure_alloc(sd, sizeof(ShaderClosure), CLOSURE_EMISSION_ID, weight);
|
||||
sd->flag |= SD_EMISSION;
|
||||
emission_setup(sd, weight);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user