Mane Manero
Mane Manero

Reputation: 3778

Scenekit - level of detail for materials/textures

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

Answers (1)

mnuages
mnuages

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

Related Questions