lighttransport / nanort

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

Pbr templated preceision #43

Closed Ybalrid closed 6 years ago

Ybalrid commented 6 years ago

Hi,

With this patch, every bit of maths computed by the PBR shader is no longer restricted to float precision.

Types and free functions used are using the type in the template to represent a floating point number, for added flexibility.

syoyo commented 6 years ago

Cool! merged.