summaryrefslogtreecommitdiff
path: root/src/modules/stars/draw.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2017-09-13 13:55:22 -0700
committerVito Caputo <vcaputo@pengaru.com>2017-09-13 13:59:19 -0700
commit121846b0e35607bf8b48d5ce304a65e2657be455 (patch)
tree7877e16b4b4949d65f3fc46373c5850cb72b4f88 /src/modules/stars/draw.h
parentcf586253932e04f3c5a2be2c3d6d3ff5b1301ce0 (diff)
ray: cleanup ray_camera_frame_t fragments
Previously every fb_fragment_t (and thus thread) was constructing its own ray_camera_frame_t view into the scene, duplicating some work. Instead introduce ray_camera_fragment_t to encapsulate the truly per-fragment state and make ray_scene_render_fragment() operate on just this stuff with a reference to a shared ray_camera_frame_t prepared once per-frame. Some minor ray_camera.c cleanups sneak in as well (prefer multiply instead of divide, whitespace cleanups...)
Diffstat (limited to 'src/modules/stars/draw.h')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved