examples/gl/materialPBRExample/README.md
This example demonstrates how to use setup a PBR material and scene with a camera. It demonstrates the use of a cube map with textures.
You will learn how to..
Pay attention to..
USE_CUBE_MAPmaterial.begin(); and the for loops inside it.material.setRoughness(0.05);When launching this app, you should see 3 rows and 5 columns of spheres. The top row changes the metalness. The middle row changes the roughness of metallic spheres. The bottom row changes the reflectance of non-metallic spheres.
Instructions for use:
1,2,3 to change the rendering of the cube map.//cubeMap.load("dancing_hall_2k.exr", 512, true ); in ofApp.cpp in setup();//#define USE_CUBE_MAP in ofApp.hThis Example uses the following classes: