Skip to content

Commit

Permalink
speed up the rendering of assembly using instancing method
Browse files Browse the repository at this point in the history
  • Loading branch information
jiywang3 committed May 21, 2018
1 parent 4cd9d09 commit 9bc365b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/icn3d/draw/impostor.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @author Jiyao Wang <[email protected]> / https://github.com/ncbi/icn3d
*/

iCn3D.prototype.setParametersForShader = function () { var me = this;
var modelViewMatrix = new THREE.Uniform( new THREE.Matrix4() )
.onUpdate( function( object ){
Expand Down
4 changes: 4 additions & 0 deletions src/icn3d/draw/instancing.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @author Jiyao Wang <[email protected]> / https://github.com/ncbi/icn3d
*/

iCn3D.prototype.positionFromGeometry = function( mesh ){
var geometry = mesh.geometry;

Expand Down

0 comments on commit 9bc365b

Please sign in to comment.