Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 424 Bytes

File metadata and controls

22 lines (16 loc) · 424 Bytes

GalaxyGeometry

Galaxy Geometry for THREE js

Usage

var geometry = new THREE.GalaxyGeometry();
var material = new THREE.PointsMaterial();
var galaxy = new THREE.Points(geometry, material);
scene.add(galaxy);

Parameters

  • radius
  • numberOfStars
  • length
  • width

Note

Please note that this type of geometry only have vertices (haven't faces, and uvs), so you can only use it for THREE.Points!