-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joppe Boeve
committed
Jan 17, 2024
1 parent
95eda53
commit 957b873
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: yzaim <[email protected]> +#+ */ | ||
/* +#+ */ | ||
/* Created: 2024/01/08 15:28:08 by yzaim #+# #+# */ | ||
/* Updated: 2024/01/17 16:22:52 by jboeve ######## odam.nl */ | ||
/* Updated: 2024/01/17 16:29:48 by jboeve ######## odam.nl */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -48,10 +48,10 @@ static void draw_column(t_meta *meta, t_vec2i line, t_ray *ray, uint32_t col, ui | |
ray->texture_position = (ray->line_point.x + (ray->line_height - h) / 2) * ray->step; | ||
|
||
|
||
printf("line_height [%lf]\n", ray->line_height); | ||
printf("step [%lf]\n", ray->step); | ||
printf("texture_point [%d]\n", ray->texture_point.x); | ||
printf("texture_position [%lf]\n", ray->texture_position); | ||
// printf("line_height [%lf]\n", ray->line_height); | ||
// printf("step [%lf]\n", ray->step); | ||
// printf("texture_point [%d]\n", ray->texture_point.x); | ||
// printf("texture_position [%lf]\n", ray->texture_position); | ||
|
||
int32_t y; | ||
y = 0; | ||
|