ios - How to map texture from world coordinates in SceneKit? -
i'd texture scnbox objects based on world coordinates, 2 adjacent scnboxs have consistent texture running between them, if makes sense. in other words, i'd texture coordinates based on world coordinates not geometry coordinates. tips please?
so far i've tried this, doesn't take account of size of box:
floorplane.firstmaterial!.diffuse.contentstransform = scnmatrix4invert(floornode!.transform)
Comments
Post a Comment