Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
8e5833e4
Commit
8e5833e4
authored
Oct 19, 2010
by
Sander Mathijs van Veen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup graphics assignment 6: ray tracing 1
parent
665c5c0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
graphics/ass6/Makefile
graphics/ass6/Makefile
+15
-0
graphics/ass6/main.c
graphics/ass6/main.c
+2
-2
graphics/ass6/scenes.tgz
graphics/ass6/scenes.tgz
+0
-0
No files found.
graphics/ass6/Makefile
View file @
8e5833e4
PROG
=
Opgave6_Kroes_VanVeen
MKDIR
=
mkdir
PACK
=
tar
-czvf
CC
=
gcc
CP
=
cp
RM
=
rm
-rf
WARNING_FLAGS
=
-Wall
-Wextra
-Werror-implicit-function-declaration
-Wshadow
-Wstrict-prototypes
-pedantic-errors
CFLAGS
=
-g
-O2
-std
=
c99
$(WARNING_FLAGS)
...
...
@@ -12,9 +18,18 @@ main: intersection.o main.o plymodel.o rply.o scene.o shaders.o v3math.o
$(CC)
$(LDFLAGS)
-o
main intersection.o main.o plymodel.o rply.o scene.o shaders.o v3math.o
clean
:
rm
-f
$(PROG)
.tar.gz
rm
-f
*
.o
rm
-f
main
tarball
:
$(MAKE)
clean
$(MKDIR)
$(PROG)
$(CP)
*
$(PROG)
2> /dev/null
||
true
$(RM)
$(PROG)
/
*
.pdf
$(PACK)
$(PROG)
.tar.gz
$(PROG)
/
*
../scenes
$(RM)
$(PROG)
shaders.o
:
constants.h intersection.h scene.h shaders.h v3math.h shaders.c
scene.o
:
plymodel.h scene.h scene.c
intersection.o
:
types.h intersection.h
...
...
graphics/ass6/main.c
View file @
8e5833e4
...
...
@@ -189,8 +189,8 @@ ray_trace(void)
// Find midpoint and point 0,0
vec3
p
=
v3_subtract
(
v3_add
(
v3_add
(
origin
,
forward_vector
),
v3_multiply
(
up_vector
,
0
.
5
*
(
image_plane_height
-
0
.
5
*
scale
))),
v3_multiply
(
right_vector
,
0
.
5
*
(
image_plane_width
-
0
.
5
*
scale
))
v3_multiply
(
up_vector
,
.
5
*
(
image_plane_height
-
.
5
*
scale
))),
v3_multiply
(
right_vector
,
.
5
*
(
image_plane_width
-
.
5
*
scale
))
);
// Loop over all pixels in the framebuffer
...
...
graphics/ass6/scenes.tgz
deleted
100644 → 0
View file @
665c5c0d
File deleted
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment