Skip to content

Commit

Permalink
Add the Raytracing reference screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Nov 19, 2024
1 parent eb66fa3 commit 71794bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kinc
Submodule Kinc updated from e31c3e to 168740
7 changes: 6 additions & 1 deletion Raytracing/Sources/raytracing.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static void update_transforms(void) {
}

static bool first = true;
static uint64_t frame = 0;

void update(void *data) {
kope_g5_texture *framebuffer = kope_g5_device_get_framebuffer(&device);
Expand Down Expand Up @@ -104,8 +105,12 @@ void update(void *data) {
kope_g5_device_execute_command_list(&device, &list);

#ifdef SCREENSHOT
screenshot_take(&device, &list, framebuffer, width, height);
if (frame == 3) {
screenshot_take(&device, &list, framebuffer, width, height);
}
#endif

++frame;
}

int kickstart(int argc, char **argv) {
Expand Down
Binary file added Raytracing/reference.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 71794bc

Please sign in to comment.