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

Code sanitising.

上级 124f9d7a
......@@ -3317,13 +3317,13 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( material.visible === false ) return;
var program, programAttributes, linewidth, primitives, a, attribute, geometryAttributes;
var linewidth, a, attribute;
var attributeItem, attributeName, attributePointer, attributeSize;
program = setProgram( camera, lights, fog, material, object );
var program = setProgram( camera, lights, fog, material, object );
programAttributes = program.attributes;
geometryAttributes = geometry.attributes;
var programAttributes = program.attributes;
var geometryAttributes = geometry.attributes;
var updateBuffers = false,
wireframeBit = material.wireframe ? 1 : 0,
......@@ -3493,7 +3493,7 @@ THREE.WebGLRenderer = function ( parameters ) {
// render lines
primitives = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
var primitives = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
setLineWidth( material.linewidth );
......@@ -3514,11 +3514,11 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( material.visible === false ) return;
var program, attributes, linewidth, primitives, a, attribute, i, il;
var linewidth, a, attribute, i, il;
program = setProgram( camera, lights, fog, material, object );
var program = setProgram( camera, lights, fog, material, object );
attributes = program.attributes;
var attributes = program.attributes;
var updateBuffers = false,
wireframeBit = material.wireframe ? 1 : 0,
......@@ -3688,7 +3688,7 @@ THREE.WebGLRenderer = function ( parameters ) {
} else if ( object instanceof THREE.Line ) {
primitives = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
var primitives = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
setLineWidth( material.linewidth );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册