An open API service indexing awesome lists of open source software.

https://github.com/imadr/blaz

3D engine with no dependencies, all code is written from scratch
https://github.com/imadr/blaz

game-engine gamedev graphics rendering

Last synced: about 1 year ago
JSON representation

3D engine with no dependencies, all code is written from scratch

Awesome Lists containing this project

README

          

# 🔥 blaz

3D engine with no dependencies, all code is written from scratch

## Building

- [Install CMake >= 3.12](https://cmake.org/download/)
- ```git clone https://github.com/imadr/blaz.git```
- ```cd blaz```
- ```mkdir build && cd build```
- ```cmake ..``` to generate the build files
- ```cmake --build .``` to run the build **or** use the generated visual studio project file/makefile to build
You can also use **cmake-gui**

## Samples

| Sample | Screenshot |
|-----------------------|------------------------------------------------------------------|
| 01-triangle |
|
| 02-cubes |
|
| 03-pbr |
|
| 04-raymarching |
|
| 05-raytracing |
|
| 06-shadow |
|
| 07-ao |
|

## Building for web

- Install [emscripten](https://emscripten.org/)
- ```emsdk_env.bat``` or ```emsdk_env.sh```
- ```mkdir build_wasm && cd build_wasm```
- ```emcmake cmake ..```
- ```cmake --build .```
- To build a specific sample ```cmake --build . --target "01-hellotriangle"```