lighttransport / nanort

NanoRT, single header only modern ray tracing kernel.
MIT License
1.08k stars 91 forks source link

Add pbr_surface example to nanort #34

Closed Ybalrid closed 6 years ago

Ybalrid commented 6 years ago

Add an example program with a sample implementation of PBR rendering, based on sample implementation in GLSL from Khronos.

Implementation is limited to the default metal/roughness workflow (the one by default in gltf materials).

This demonstrate how PBR can be implemented into software rendering.

This PR also updates stbi libraries in common to the lattest version.

See readme in example/pbr_surface for more info.

This is currently WIP: TODO: Add possibility to use textures for the differents PBR maps instead of static values TODO: integrate this in sample actually using glTF files. (tinygltf/nanosg example)

syoyo commented 6 years ago

Good! merged.