Added crude lines support to WebGLRenderer.
As expected, performance of one-to-one conversion from CanvasRenderer was horrible, so I had to change a bit how lines are handled. Line object now has "type" property: - default type is "THREE.LineContinuous" which should behave as before: geometry represents one continuous line (v0 ... vn) - new option is "THREE.LinePieces" which tells renderer that geometry represents collection of individual line segments (v0,v1) ... (vn-1, vn) (one Line object corresponds to one VBO) (same limitations as with meshes - once VBO is baked, no changes are possible except object transforms - scale / rotation / position)
Showing
此差异已折叠。
此差异已折叠。
此差异已折叠。
examples/lines_sphere_gl.html
0 → 100644
想要评论请 注册 或 登录