I would like to scale the primitive using it’s model matrix, to dynamically change its size depending on distance to it from the viewer.camera.position. The problem is when i apply the scale, primitive just disappears. Also I investigated that if applying the very small scale value, like 0.999999 it works properly.
When scaling the model it’s origin shifts. I think that may cause model disappearing when applying large scale values - so the primitive just shifts far far away from it’s origin and I can’t find it.
Here is my approach in [Sandcastle]Cesium Sandcastle)
Thank in advance,