Explorar o código

Fixed webgl_buffergeometry_rawshader example. See #8618.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
5ddffee56c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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