Hello everybody.
I’ve spent many hours trying to make a billboard for the line.
It is necessary to achieve the same effect as in the standard LineRenderer by the shader.
The main problem, I can not project the vertices in the shader, I do not understand how to do it. I have problems with the coordinate transformation (
Now a new problem. I put the world coordinates in the shader. Then, coordinate transformation is as follows:
o.pos = mul (UNITY_MATRIX_VP, i.vertex);
But experiments have shown that the clipping boundaries of the mesh is now invalid.
Of course, I call mesh.RecalculateBounds (); But the problem is that they need to be corrected because UNITY_MATRIX_VP.
How can I do that? I was looking for information on the network, but found nothing
But nothing happens.
If I call RecalculateBounds (), then it does not work with my parameters.
This is a bug or something? How to change the boundaries of mesh culling?