0
votes
1answer
590 views

Calculating distance from viewer to object in a shader

Good morning, I'm working through creating the spherical billboards technique outlined in this paper. I'm trying to create a shader that calculates the distance from the camera to all objects in the ...