Reputation: 3778
Is it possible to have different materials resolutions for different level of details (SCNLevelOfDetail)?
I know SCNLevelOfDetail is supposed to be used with different Geometries resolution, but what about materials/textures?
Example:
thanks!
Upvotes: 2
Views: 573
Reputation: 13462
Materials are attached to geometries. You can copy
the SCNGeometry
and then change its materials. The copy is cheap (because the underlying vertex data is shared) and you can create a SCNLevelOfDetail
with it.
Upvotes: 2