├── .gitignore ├── .vscode └── c_cpp_properties.json ├── Makefile ├── README.md ├── assets ├── crab.obj ├── crab.png ├── cube.obj ├── cube.png ├── drone.obj ├── drone.png ├── efa.obj ├── efa.png ├── f117.obj ├── f117.png ├── f22.obj ├── f22.png ├── pikuma.png └── sphere.obj ├── docs ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.png └── 6.png ├── playground ├── Makefile ├── build-and-run.sh └── src │ └── main.c └── src ├── array.c ├── array.h ├── camera.c ├── camera.h ├── clipping.c ├── clipping.h ├── display.c ├── display.h ├── light.c ├── light.h ├── main.c ├── matrix.c ├── matrix.h ├── mesh.c ├── mesh.h ├── swap.c ├── swap.h ├── texture.c ├── texture.h ├── triangle.c ├── triangle.h ├── upng.c ├── upng.h ├── vector.c └── vector.h /.gitignore: -------------------------------------------------------------------------------- 1 | renderer 2 | playground-exe -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/.vscode/c_cpp_properties.json -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/README.md -------------------------------------------------------------------------------- /assets/crab.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/crab.obj -------------------------------------------------------------------------------- /assets/crab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/crab.png -------------------------------------------------------------------------------- /assets/cube.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/cube.obj -------------------------------------------------------------------------------- /assets/cube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/cube.png -------------------------------------------------------------------------------- /assets/drone.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/drone.obj -------------------------------------------------------------------------------- /assets/drone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/drone.png -------------------------------------------------------------------------------- /assets/efa.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/efa.obj -------------------------------------------------------------------------------- /assets/efa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/efa.png -------------------------------------------------------------------------------- /assets/f117.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/f117.obj -------------------------------------------------------------------------------- /assets/f117.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/f117.png -------------------------------------------------------------------------------- /assets/f22.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/f22.obj -------------------------------------------------------------------------------- /assets/f22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/f22.png -------------------------------------------------------------------------------- /assets/pikuma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/pikuma.png -------------------------------------------------------------------------------- /assets/sphere.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/assets/sphere.obj -------------------------------------------------------------------------------- /docs/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/docs/1.png -------------------------------------------------------------------------------- /docs/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/docs/2.png -------------------------------------------------------------------------------- /docs/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/docs/3.png -------------------------------------------------------------------------------- /docs/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/docs/4.png -------------------------------------------------------------------------------- /docs/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/docs/5.png -------------------------------------------------------------------------------- /docs/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/docs/6.png -------------------------------------------------------------------------------- /playground/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/playground/Makefile -------------------------------------------------------------------------------- /playground/build-and-run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/playground/build-and-run.sh -------------------------------------------------------------------------------- /playground/src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/playground/src/main.c -------------------------------------------------------------------------------- /src/array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/array.c -------------------------------------------------------------------------------- /src/array.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/array.h -------------------------------------------------------------------------------- /src/camera.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/camera.c -------------------------------------------------------------------------------- /src/camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/camera.h -------------------------------------------------------------------------------- /src/clipping.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/clipping.c -------------------------------------------------------------------------------- /src/clipping.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/clipping.h -------------------------------------------------------------------------------- /src/display.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/display.c -------------------------------------------------------------------------------- /src/display.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/display.h -------------------------------------------------------------------------------- /src/light.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/light.c -------------------------------------------------------------------------------- /src/light.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/light.h -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/main.c -------------------------------------------------------------------------------- /src/matrix.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/matrix.c -------------------------------------------------------------------------------- /src/matrix.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/matrix.h -------------------------------------------------------------------------------- /src/mesh.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/mesh.c -------------------------------------------------------------------------------- /src/mesh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/mesh.h -------------------------------------------------------------------------------- /src/swap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/swap.c -------------------------------------------------------------------------------- /src/swap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/swap.h -------------------------------------------------------------------------------- /src/texture.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/texture.c -------------------------------------------------------------------------------- /src/texture.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/texture.h -------------------------------------------------------------------------------- /src/triangle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/triangle.c -------------------------------------------------------------------------------- /src/triangle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/triangle.h -------------------------------------------------------------------------------- /src/upng.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/upng.c -------------------------------------------------------------------------------- /src/upng.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/upng.h -------------------------------------------------------------------------------- /src/vector.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/vector.c -------------------------------------------------------------------------------- /src/vector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalzalobny/3d-renderer-in-c/HEAD/src/vector.h --------------------------------------------------------------------------------