highfidelity/hifi — pull request #4027 by huffman (2014-12-31 21:10:05+00:00)
Title: Grid shader updates

One of the issues with editing large entities is that the grid fades away as soon as the camera is far away from it. This updates the grid to fade out based on the distance from the center of the grid rather than the camera. The falloff is a little different here, being squared rather than exponential.

@ey6es This affects the metavoxel grid as well, but shouldn't make a huge difference. I can put this change in a separate shader if preferred, though.

Feedback appreciated.