I obtain the material by its name, and achieve the diffuse texture of the material.
I clear the texture,and create a new 2D texture for it.
Below is the code :
_diffuseIds = mat->findTexture("diffuse");
_textures = mat->getImageTexture(_diffuseIds[index]);
_textures->clear();
_textures[index]->create2D(_camwidth, _camheight, Unigine::Image::FORMAT_RGBA8, Unigine::Texture::FILTER_LINEAR | Unigine::Texture::USAGE_DYNAMIC);
I want to create a new texture for the material ,but it still always access the original image texture.
Is there an idea to make the new create texture unable to access the original image texture?