forked from BachiLi/redner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprimary_intersection.h
More file actions
23 lines (20 loc) · 911 Bytes
/
primary_intersection.h
File metadata and controls
23 lines (20 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "redner.h"
#include "buffer.h"
#include "camera.h"
#include "ray.h"
#include "intersection.h"
#include "shape.h"
struct Scene;
struct DScene;
/// Backpropagate the primary ray intersection to hit vertices & camera
void d_primary_intersection(const Scene &scene,
const BufferView<int> &active_pixels,
const BufferView<CameraSample> &samples,
const BufferView<Ray> &rays,
const BufferView<RayDifferential> &primary_ray_differentials,
const BufferView<Intersection> &intersections,
const BufferView<DRay> &d_rays,
const BufferView<RayDifferential> &d_ray_differentials,
const BufferView<SurfacePoint> &d_surface_points,
DScene *d_scene);