tparisi / WebGLBook

Code Examples for Tony Parisi's Book, WebGL Up and Running
520 stars 303 forks source link

stars.js - THREE.Vertex has been deprecated, use THREE.Vector3 instead #5

Open FullstackJack opened 11 years ago

FullstackJack commented 11 years ago

stars.js throws error to the console "THREE.Vertex has been DEPRECATED. Use THREE.Vector3 instead."

Still haven't gotten it to show the stars...

Probably want to just change:

starsGeometry.vertices.push( new THREE.Vertex( vector ) ) ;

to:

starsGeometry.vertices.push( vector );

since vector is already a Vector3 object.

steelx commented 11 years ago

im also facing same issue.

anothercoder2 commented 9 years ago

Same problem using Sparks.js example wth Three.js version 60 Any body have a fix?