hi, i try using getProceduralTextureImage function for generation 3D interface on Widgets in ObjectGuiMesh
i`m using Unigine example "Objects/gui_04"
i want get content image of widgets and apply displacement shader with this texture with some filtering
my code in update:
Material material = object_gui_mesh.getMaterial(0); int id = material.findTexture("color");
if(id != -1) {
Image img = new Image();
if(material.getProceduralTextureImage(id, img)) { //Allways 0
img.save(file_path);
}
}
getProceduralTextureImage always return 0, what to do?