Skip to content

Instantly share code, notes, and snippets.

@bennlich
bennlich / main.js
Last active May 10, 2019 16:47
test case showing threebox rendering a tube
mapboxgl.accessToken = 'pk.eyJ1IjoiYmVubmxpY2giLCJhIjoieUxHOHQyNCJ9.VLDDBTTdzeHKJvR5ABYaLA'
let tubeMesh;
let tubeMaterial;
let origin = [-122.2639955060099, 37.7994199370347, 1000];
let map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v9',
center: origin,
zoom: 12,
@bennlich
bennlich / main.js
Last active May 10, 2019 17:21
attempt to draw a transparent cube in threebox
mapboxgl.accessToken = config.accessToken;
var origin = [-122.4340, 37.7353, 1000];
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v9',
center: origin,
zoom: 15.95,
pitch: 60,
heading: 41,