#pragma once
#include <render/integrator.h>
#include "path2.h"
#include "ptracer2.h"
struct Hybrid : Integrator
{
    // forward rendering
    ArrayXd renderC(const Scene &scene, const RenderOptions &options) const;
    // rendering gradient image
    ArrayXd renderD(SceneAD &sceneAD,
                    const RenderOptions &options, const ArrayXd &d_image) const;
    Path2 pathTracer;
    ParticleTracer2 particleTracer;
};