Set interpolation (nearest neighbor) type for material used for rectangle primitive

Daniel,

If you can invest some time into adding this feature and contributing a pull request that’d definitely be appreciated! Since Texture and Sampler are both private classes, I think you’d need to do something similar to how ImageryLayer does it, which takes in a min/mag filter here:

It then internally creates the sampler here and passes it to the Texture constructor below:

You would do this in the Material class, take in a min/mag filter, create a sampler, pass it when the Texture is created here:

This would make it work at the Primitive level, when creating a material directly, like in this Sandcastle example:

https://sandcastle.cesium.com/index.html?src=Materials.html

It would be a separate feature to link it up with the Entity API. Hope this helps, let me know if you run into any other issues! You can always open a draft PR if you have an implementation that works but are unsure if it’s the best approach.