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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -