Browse Source

reeeeeeeeeeeeeee

place-stuff
Joel 4 years ago
parent
commit
cf9a330dfa
  1. 2
      camera.c
  2. 6
      main.c

2
camera.c

@ -273,7 +273,7 @@ process_pixel(int i, int j) @@ -273,7 +273,7 @@ process_pixel(int i, int j)
.dir = normalise_vec_ip(new_vec4(i - B_INTERNAL_WIDTH/2, j - B_INTERNAL_HEIGHT/2, 100, 0))
};
struct pixel_info p = march(&r, &scene_object);
struct pixel_info p = march(&r, scene_object);
// p.col.r += p.travel_dist;

6
main.c

@ -152,8 +152,8 @@ void setup_camera_scene() @@ -152,8 +152,8 @@ void setup_camera_scene()
scene_objects[0] = other_white_sphere;
scene_object = new_scene(2, scene_objects);
scene_object.sol.pos.dimension = 3;
scene_object.sol.pos.elements = camera->pos->elements;
scene_object->sol.pos.dimension = 4;
scene_object->sol.pos.elements = camera->pos->elements;
}
@ -162,7 +162,7 @@ int main(int argc, char **argv) { @@ -162,7 +162,7 @@ int main(int argc, char **argv) {
SDL_Window * win = make_window();
ren = SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
SDL_RenderSetLogicalSize(ren, B_INTERNAL_HEIGHT, B_INTERNAL_HEIGHT);
// SDL_RenderSetLogicalSize(ren, B_INTERNAL_HEIGHT, B_INTERNAL_HEIGHT);
// use this to turn on antristroptic filtering
// SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");

Loading…
Cancel
Save