diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2017-12-23 22:56:24 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2017-12-23 22:56:24 -0800 |
commit | da7171d994d66198682a50f05954b629eb6fb4e4 (patch) | |
tree | 670404ff4e36118cdb1f75d6b3d8dc657277511b /src/modules/ray/ray_render.c | |
parent | 12b7b727f859c4b3129fdc12c4df74797de9471a (diff) |
ray: constify input scene and camera parameters
also const the ray_euler_t basis
Diffstat (limited to 'src/modules/ray/ray_render.c')
-rw-r--r-- | src/modules/ray/ray_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ray/ray_render.c b/src/modules/ray/ray_render.c index c17e1b9..4ca168f 100644 --- a/src/modules/ray/ray_render.c +++ b/src/modules/ray/ray_render.c @@ -216,7 +216,7 @@ void ray_render_trace_fragment(ray_render_t *render, fb_fragment_t *fb_fragment) /* prepare the scene for rendering with camera, must be called whenever anything in the scene+camera pair has been changed. */ /* this is basically a time for the raytracer to precompute whatever it can which otherwise ends up occurring per-ray */ /* the camera is included so primary rays which all have a common origin may be optimized for */ -ray_render_t * ray_render_new(ray_scene_t *scene, ray_camera_t *camera) +ray_render_t * ray_render_new(const ray_scene_t *scene, const ray_camera_t *camera) { ray_render_t *render; ray_object_t *object; |