lighttransport / nanort

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

Fix PBR example for Linux/GCC #35

Closed Ybalrid closed 6 years ago

Ybalrid commented 6 years ago

As always, Visual Studio let us do thing that will not build on other compiler.

This fixes the PBR CPU shading example on Linux.

Signed-off by: Arthur Brainville (Ybalrid) ybalrid@ybalrid.info

Ybalrid commented 6 years ago

2nd commit of this PR was pushed by mistake on this brach, but you can merge it. It just adds a C++ equivalent of sampler2D/texture2D to get pixel color inside the shader code

syoyo commented 6 years ago

Cool! merged.