contentsRect issue with CALayer in SCNMaterial

Hello there,


I am trying to implement something that doesn't work as I would expect.


When I have a CALayer (let say in a UIView), and set a big image for its "contents", if I change the layer's contentsRect I can move which area of my big image is visible. However, if I set this layer as the diffuse.contents of a SCNMaterial, changing the contentsRect doesn't change anything.


Note: I have considered rendering an SKScene and use a a single sprite with a SKTextureAtlas to animate my frames, however my atlas images are way too big so I need to manage the memory on my own instead of loading the whole atlas.


Any advice from engineers at Apple ? Or others.