mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-21 10:56:01 +10:00
Added THREE namespace Camera.x -> Camera.position.x Camera.target.x -> Camera.target.position.x ColorMaterial -> ColorFillMaterial FaceColorMaterial -> FaceColorFillMaterial Materials are now multipass (use array) Added ColorStrokeMaterial and FaceColorStrokeMaterial geometry.faces.a are now indexes instead of links
11 lines
342 B
JavaScript
Executable File
11 lines
342 B
JavaScript
Executable File
THREE.ColorStrokeMaterial = function (hex, opacity, lineWidth) {
|
|
|
|
this.lineWidth = lineWidth || 1;
|
|
this.color = new THREE.Color( (opacity ? (opacity * 0xff) << 24 : 0xff000000) | hex );
|
|
|
|
this.toString = function () {
|
|
|
|
return 'THREE.ColorStrokeMaterial ( lineWidth: ' + this.lineWidth + ', color: ' + this.color + ' )';
|
|
}
|
|
}
|