LineBasicMaterial.linejoin not work
See original GitHub issueDescription of the problem
when I set LineBasicMaterial.linejoin as ‘bevel’ or ‘miter’,it not work.The appearance of line joints always be ‘round’.
renderer = new THREE.CanvasRenderer();
var material = new THREE.LineBasicMaterial({
color: 0x0000ff,
linewidth: 25,
linecap: 'round',
linejoin: 'miter',
});
var geometry = new THREE.Geometry();
geometry.vertices.push(
new THREE.Vector3( -10, 0, 0 ),
new THREE.Vector3( 0, 0, 20 ),
new THREE.Vector3( 10, 0, 0 )
);
var line = new THREE.Line( geometry, material );
scene.add( line );
Three.js version
- Dev
- r85
- …
Browser
- All of them
- Chrome
- Firefox
- Internet Explorer
OS
- All of them
- Windows
- macOS
- Linux
- Android
- iOS
Hardware Requirements (graphics card, VR Device, …)
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
LineBasicMaterial – three.js docs
This corresponds to the 2D Canvas lineCap property and it is ignored by the WebGL renderer. # .linejoin : String. Define appearance of...
Read more >How to put THREE.LineBasicMaterial in Aframe - Stack Overflow
Material and LineBasicMaterial do not have 'wireframe' so I don't know how to make this work without just adding wireframe in and 'hacking' ......
Read more >THREE.LineBasicMaterial - Learn Three.js - Third Edition [Book]
In practice, the results from changing this property are very difficult to see. This property isn't supported on WebGLRenderer . linejoin. Defines how...
Read more >Materials you can use for a line geometry | Learning Three.js
LineBasicMaterial : The basic material for a line allows you to set the colors , linewidth , linecap , and linejoin properties. THREE....
Read more >LineBasicMaterial - Three.js
LineBasicMaterial ( { color: 0xffffff, linewidth: 1, linecap: 'round', // ignored by WebGLRenderer (игнорируется WebGLRenderer'ом) linejoin: 'round' ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
CanvasRenderer
has been removed, see #15029I think this is because with
CanvasRenderer
, the line is rendered as a sequence of individual line segments:instead of:
Hence,
linecap
is honored, butlinejoin
is not.