Skip to content

Conversation

ffflabs
Copy link
Contributor

@ffflabs ffflabs commented Oct 13, 2014

  1. Adds a canvas renderer fallback to threejs-layer.js. For this, there's a new webgl property that basically mimics the one in detector.js. If no webgl context is detected, the lib will instantiate a THREE.CanvasRenderer object.
  2. Fixes the example accordingly. The fallback renderer can be forced by adding renderertype:'Canvas' to the constructor
new ThreejsLayer({ map: map,renderertype:'Canvas' }, function(layer){
...
});
  1. Replaces the version of three.js in /lib for the full r68 version. For some reason, the version you had didn't had the THREE.SpriteMaterial object.

aemkei added a commit that referenced this pull request Oct 14, 2014
@aemkei aemkei merged commit faa13ba into ubilabs:master Oct 14, 2014
@aemkei
Copy link
Member

aemkei commented Oct 14, 2014

Wow, thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants