Here is a tutorial on how to change scale, color, rotation, texture and other instances parameters depending on a distance from camera (or Light, or any other COMP).
This one came from an idea to recreate effect of Line MAT, when you can change point scale and color based on distance from the camera. And first version was actually done with GLSL, but afterwards I realized, that it would be much easier to do it natively in Touch with CHOPs and TOPs.
I hope it will inspire you to do your own experiments and I would be happy to see your results, so please leave link to your works here in the comments or tag me on Instagram.
You can download a project files from this tutorial and motivate me to keep doing tutorials by becoming my Patreon supporter :)