diff options
author | rodri <rgl@antares-labs.eu> | 2024-05-23 13:20:24 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-05-23 13:20:24 +0000 |
commit | 22edbd9f543509ab129ba03af92baed79139e07f (patch) | |
tree | c33366a11b2551c107f6d553c6e495c9ccedba6c /mdl | |
parent | ef7a0d43dea903cd8c2f52adcc263c437b5a0454 (diff) | |
download | 3dee-22edbd9f543509ab129ba03af92baed79139e07f.tar.gz 3dee-22edbd9f543509ab129ba03af92baed79139e07f.tar.bz2 3dee-22edbd9f543509ab129ba03af92baed79139e07f.zip |
fix the gouraud shader. improve the cube generator in med.
gouraud wasn't being applied when the vertex had no material,
now it just takes the defaults.
also added a new primtest.obj to visualize all the primitives
in a single model.
Diffstat (limited to 'mdl')
-rw-r--r-- | mdl/primtest.obj | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mdl/primtest.obj b/mdl/primtest.obj new file mode 100644 index 0000000..cfee8cb --- /dev/null +++ b/mdl/primtest.obj @@ -0,0 +1,23 @@ +mtllib basis.mtl +v 0 0 0 +v 1 0 0 +v 0 1 0 +v 0 0 1 +v 2 0 0 +v 0 2 0 +v 0 0 2 +v 2.1 0 0 +v 0 2.1 0 +v 0 0 2.1 +usemtl x +f 1 2 3 +l 1 5 +p 8 +usemtl y +f 1 3 4 +l 1 6 +p 9 +usemtl z +f 1 4 2 +l 1 7 +p 10 |