Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ env:
CARGO_TERM_COLOR: always

jobs:
check_fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo +nightly fmt --check
Comment thread
weiznich marked this conversation as resolved.
build_linux:
runs-on: ubuntu-latest
steps:
Expand All @@ -14,8 +22,6 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Cargo Format
run: cargo fmt -- --check
build_windows:
runs-on: windows-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion obj/cornell_box2.mtl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Ka 0 0 0
Kd 0 0 1
Ks 0 0 0
Ns 10
crazy_unknown Wierd stuff here
crazy_unknown Weird stuff here

newmtl light
Ka 20 20 20
Expand Down
7 changes: 7 additions & 0 deletions obj/triangle_scaled.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# A simple triangle object for testing
o Triangle
v 0 0 0 0.5
v 1 0 0 0.5
v 0 1 0 0.5

f -3 -2 -1
7 changes: 7 additions & 0 deletions obj/triangle_scaled_by_zero.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# A simple triangle object for testing
o Triangle
v 0 0 0 0.0
v 1 0 0 0.5
v 0 1 0 0.5

f -3 -2 -1
7 changes: 7 additions & 0 deletions obj/triangle_with_two_additional_floats.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# A simple triangle object for testing
o Triangle
v 0 0 0 0.5 1
v 1 0 0 0.5 0
v 0 1 0 0.5 1

f -3 -2 -1
27 changes: 27 additions & 0 deletions obj/unnamed_lines.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# A couple of unnamed groups to test name fallback
g
v 0 0 0
v 1 0 0
v 0 1 0

l -3 -2
l -2 -1
l -1 -3

g group_with_name
v 0 0 0
v 1 0 0
v 0 1 0

l -3 -2
l -2 -1
l -1 -3

g
v 0 0 0
v 1 0 0
v 0 1 0

l -3 -2
l -2 -1
l -1 -3
Loading
Loading