-
-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
Hi,
In linestrip-3d.py, when I changed n=2048 to n=3, that is, two jointed segments spinning in 3D space, I get the following "faded", tapered ends.
Looking at the code, I suspect it is because linelength was calculated in model space but it is used like a screen space quantity in the shader.
For example, in the vertex shader, the code:
"v_uv.x = linelength+w;"
sums together a model space and a screen space quantity (w). As a result, v_uv.x doesn't interpolate exactly to the start/end of the polyline.
Any suggestion on how to fix it?
Metadata
Metadata
Assignees
Labels
No labels