diff options
author | rodri <rgl@antares-labs.eu> | 2023-11-11 12:41:54 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-11-11 12:41:54 +0000 |
commit | 212ca282c42e99e03121727c138a34584777ee60 (patch) | |
tree | b789f646f715183c5b7e0956d23bd3ab2809b7ef /mkfile | |
parent | 1a839bc268588144d9b39c45a665545c1aaa2ef3 (diff) | |
download | tinyrend-212ca282c42e99e03121727c138a34584777ee60.tar.gz tinyrend-212ca282c42e99e03121727c138a34584777ee60.tar.bz2 tinyrend-212ca282c42e99e03121727c138a34584777ee60.zip |
add support for OBJ models (triangles only).
also put a guard on the filltriangle slopes to avoid division by zero.
Diffstat (limited to 'mkfile')
-rw-r--r-- | mkfile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -6,4 +6,15 @@ OFILES=\ main.$O\ nanosec.$O\ +LIB=\ + libobj/libobj.a$O\ + </sys/src/cmd/mkone + +libobj/libobj.a$O: + cd libobj + mk install + +clean nuke:V: + rm -f *.[$OS] [$OS].out $TARG + @{cd libobj; mk $target} |