void Matte::setTexture(string texture) { ImageTexture* tex = new ImageTexture(); tex->setTextureFile(texture); ambientBRDF->setTexture(tex); tex = new ImageTexture(); tex->setTextureFile(texture); diffuseBRDF->setTexture(tex); }
void Material::setNormalMap(string texName) { ImageTexture* tex = new ImageTexture(); tex->setTextureFile(texName); normalMap = tex; }