Skip to content

Commit

Permalink
FIX minor error:
Browse files Browse the repository at this point in the history
missing cube.obj
remove *.obj from gitignore
compile_shader.sh permission denied
  • Loading branch information
SaumonDesMers authored and afaure42 committed Feb 13, 2024
1 parent e1074d3 commit 2424251
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
Expand Down
36 changes: 36 additions & 0 deletions assets/models/cube.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# cube.obj
#
o cube
mtllib cube.mtl
v -1 -1 1
v 1 -1 1
v -1 1 1
v 1 1 1
v -1 1 -1
v 1 1 -1
v -1 -1 -1
v 1 -1 -1
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 0.000000 1.000000
vt 1.000000 1.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 1.000000 0.000000
vn 0.000000 0.000000 -1.000000
vn 0.000000 -1.000000 0.000000
vn 1.000000 0.000000 0.000000
vn -1.000000 0.000000 0.000000
g cube
usemtl cube
f 1/3/1 2/1/1 3/4/1
f 3/4/1 2/1/1 4/2/1
f 3/1/2 4/2/2 5/3/2
f 5/3/2 4/2/2 6/4/2
f 5/4/3 6/3/3 7/2/3
f 7/2/3 6/3/3 8/1/3
f 7/1/4 8/2/4 1/3/4
f 1/3/4 8/2/4 2/4/4
f 2/1/5 8/2/5 4/3/5
f 4/3/5 8/2/5 6/4/5
f 7/1/6 1/2/6 5/3/6
f 5/3/6 1/2/6 3/4/6
12 changes: 6 additions & 6 deletions scripts/compile_shaders.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# https://github.com/google/shaderc/blob/main/downloads.md to download glslc

# /usr/local/bin/glslc simple_shader.vert -o simple_shader.vert.spv
# /usr/local/bin/glslc simple_shader.frag -o simple_shader.frag.spv
# /usr/local/bin/glslc shaders/simple_shader.vert -o shaders/simple_shader.vert.spv
# /usr/local/bin/glslc shaders/simple_shader.frag -o shaders/simple_shader.frag.spv

# ./glslc simple_shader.vert -o simple_shader.vert.spv
# ./glslc simple_shader.frag -o simple_shader.frag.spv
# ./glslc shaders/simple_shader.vert -o shaders/simple_shader.vert.spv
# ./glslc shaders/simple_shader.frag -o shaders/simple_shader.frag.spv

./external/glslc/glslc shaders/simple_shader.vert -o shaders/simple_shader.vert.spv
./external/glslc/glslc shaders/simple_shader.frag -o shaders/simple_shader.frag.spv

# glslang -V simple_shader.vert -o simple_shader.vert.spv
# glslang -V simple_shader.frag -o simple_shader.frag.spv
# glslang -V shaders/simple_shader.vert -o shaders/simple_shader.vert.spv
# glslang -V shaders/simple_shader.frag -o shaders/simple_shader.frag.spv

0 comments on commit 2424251

Please sign in to comment.