voxel-outline
outline targeted voxels (voxel.js plugin)
Last updated 5 years ago by deathcap .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install voxel-outline 
SYNC missed versions from official npm registry.

voxel-outline

Show an outline around the player's currently targeted block (voxel.js plugin)

screenshot

Load with voxel-plugins. Comparable to voxel-highlight except requires voxel-mesher and voxel-shader, uses gl-modules instead of three.js, and has less functionality.

API

Emits events when the raycast voxel target changes (similar to voxel-highlight):

var outlinePlugin = game.plugins.get('voxel-outline');

outlinePlugin.on('highlight', function(pos, info) { /* ... */});
outlinePlugin.on('remove', function(pos) { /* ... */});

For an example of this API usage, see voxel-voila.

License

MIT

Current Tags

  • 0.4.3                                ...           latest (5 years ago)

7 Versions

  • 0.4.3                                ...           5 years ago
  • 0.4.2                                ...           6 years ago
  • 0.4.1                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |