示例#1
0
文件: Matte.cpp 项目: dicta/ray
void Matte::setTexture(string texture) {
   ImageTexture* tex = new ImageTexture();
   tex->setTextureFile(texture);
   ambientBRDF->setTexture(tex);

   tex = new ImageTexture();
   tex->setTextureFile(texture);
   diffuseBRDF->setTexture(tex);
}
示例#2
0
文件: Material.cpp 项目: dicta/ray
void Material::setNormalMap(string texName) {
   ImageTexture* tex = new ImageTexture();
   tex->setTextureFile(texName);
   normalMap = tex;
}