This is very helpful demo for me. Bigggg Thanks to @n-ravichandran .
I 'm tried to add UIImage (texture) on wall. But, Its not works. I m able to assign colors on wall and works properly. But image texture not works.
How to add image texture/ UIImage on wall ?
if selectedNode.type == .wall { print("wall selected !!!") let image = UIImage(named: "walltexture") node.geometry?.firstMaterial?.diffuse.contents = UIColor.red }
Thanks in advance : )
Happy Coding : )
This is very helpful demo for me. Bigggg Thanks to @n-ravichandran .
I 'm tried to add UIImage (texture) on wall. But, Its not works. I m able to assign colors on wall and works properly. But image texture not works.
How to add image texture/ UIImage on wall ?
if selectedNode.type == .wall { print("wall selected !!!") let image = UIImage(named: "walltexture") node.geometry?.firstMaterial?.diffuse.contents = UIColor.red }Thanks in advance : )
Happy Coding : )