finish 8 tutorial

This commit is contained in:
h4570
2022-08-24 18:51:46 +02:00
parent b5147bba3a
commit 5c375dd24f
5 changed files with 108 additions and 8 deletions
@@ -65,6 +65,14 @@ void Tutorial07::loadMeshWithLightmap() {
ObjLoaderOptions options;
options.scale = 2.0F;
/**
* Material colors are automatically fetched from .mtl file
* (Kd field)
*
* If you want to change it manually, just try to change
* mesh.materials[].ambient
*/
auto data = ObjLoader::load(FileUtils::fromCwd("cup.obj"), options);
/**