Skip to content

voxel/voxel-outline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

outline targeted voxels (voxel.js plugin)

Resources

License

Stars

Watchers

Forks

Packages

No packages published