提交 031798e2 编写于 作者: M Mr.doob

WebGLRenderer: Fix material.wireframeLinewidth. Based on #6778. Should fix #6687.

上级 a2a059c6
......@@ -1033,7 +1033,14 @@ THREE.WebGLRenderer = function ( parameters ) {
function renderMesh( material, geometry, object, program, updateBuffers ) {
var mode = material.wireframe === true ? _gl.LINES : _gl.TRIANGLES;
var mode = _gl.TRIANGLES;
if ( material.wireframe === true ) {
mode = _gl.LINES;
state.setLineWidth( material.wireframeLinewidth * pixelRatio );
}
var index = geometry.attributes.index;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册