Skip to content

How to add image texture on wall ? #1

@iOSDevCodiste

Description

@iOSDevCodiste

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 : )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions