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

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -