Creates an instance of MaterialCache.
Retrieves a material from the cache if it exists, otherwise creates a new material using the provided factory function, adds it to the cache, and returns it.
The type of the material, extending CullingMaterial.
The material associated with the given key.
A cache for storing and retrieving materials.