Skip to content

Instantly share code, notes, and snippets.

@Carnaux
Last active January 24, 2019 17:37
Show Gist options
  • Save Carnaux/10d8c24238a09969c1da60f7367a78c0 to your computer and use it in GitHub Desktop.
Save Carnaux/10d8c24238a09969c1da60f7367a78c0 to your computer and use it in GitHub Desktop.
Dot three js
var dotGeometry = new THREE.Geometry();
dotGeometry.vertices.push(RayOrigin);
var dotMaterial = new THREE.PointsMaterial({
size: 10,
sizeAttenuation: false
});
var dot = new THREE.Points(dotGeometry, dotMaterial);
scene.add(dot);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment