Exemple #1
0
void Matte::setTexture(string texture) {
   ImageTexture* tex = new ImageTexture();
   tex->setTextureFile(texture);
   ambientBRDF->setTexture(tex);

   tex = new ImageTexture();
   tex->setTextureFile(texture);
   diffuseBRDF->setTexture(tex);
}
Exemple #2
0
void Material::setNormalMap(string texName) {
   ImageTexture* tex = new ImageTexture();
   tex->setTextureFile(texName);
   normalMap = tex;
}