Distance-based Particle Scale

Hi, I'm trying to generate particles that mimics the waves that a ship would make. Everything is going well until I realized that particle sizes are constant, despite camera distance.

Is there a way I can add perspective to these particles by making them scale based on distance from the camera? I'm using version 1.41 and testing in Chrome.

See the following link for an example:
http://luanngo.ca/apps/game/img/particle.png

The process might be somewhat manual right now, but try playing with:

startScale, endScale, minimumWidth, maximumWidth, minimumHeight, and maximumHeight

To get the distance from the particle system to the camera you could do something like:

var position = Cesium.Matrix4.getTranslation(particleSystem.modelMatrix, new Cesium.Cartesian3());

var distance = Cesium.Cartesian3.distance(camera.positionWC, position);

There’s an example in this thread of doing something similar with the particle color instead of the size. Perhaps you can modify it to fit your needs.

Thank you both. I'll give these solutions a try!