浏览代码

Fixed webgl_buffergeometry_rawshader example. See #8618.

Mr.doob 9 年之前
父节点
当前提交
5ddffee56c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/webgl_buffergeometry_rawshader.html

+ 1 - 1
examples/webgl_buffergeometry_rawshader.html

@@ -135,7 +135,7 @@
 
 
 				}
 				}
 
 
-				geometry.addAttribute( 'color', new THREE.BufferAttribute( colors, 4 ) );
+				geometry.addAttribute( 'color', new THREE.BufferAttribute( colors, 4, true ) );
 
 
 				// material
 				// material