Skip to content

Commit

Permalink
Merge pull request #4341 from HeercoGrond/patch-2
Browse files Browse the repository at this point in the history
Added Shadows to ModelInstanceCollection
  • Loading branch information
lilleyse committed Sep 20, 2016
2 parents 41d472c + 22ba9b2 commit 6bec60d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Scene/ModelInstanceCollection.js
Expand Up @@ -70,6 +70,7 @@ define([
* @param {Boolean} [options.show=true] Determines if the collection will be shown.
* @param {Boolean} [options.allowPicking=false] When <code>true</code>, each glTF mesh and primitive is pickable with {@link Scene#pick}.
* @param {Boolean} [options.asynchronous=true] Determines if model WebGL resource creation will be spread out over several frames or block until completion once all glTF files are loaded.
* @param {ShadowMode} [options.shadows=ShadowMode.ENABLED] Determines whether the collection casts or receives shadows from each light source.
* @param {Boolean} [options.debugShowBoundingVolume=false] For debugging only. Draws the bounding sphere for the collection.
* @param {Boolean} [options.debugWireframe=false] For debugging only. Draws the instances in wireframe.
*
Expand Down Expand Up @@ -131,6 +132,7 @@ define([
this._gltf = options.gltf;
this._basePath = options.basePath;
this._asynchronous = options.asynchronous;
this._shadows = options.shadows;

this.debugShowBoundingVolume = defaultValue(options.debugShowBoundingVolume, false);
this._debugShowBoundingVolume = false;
Expand Down Expand Up @@ -491,6 +493,7 @@ define([
requestType : collection._requestType,
gltf : collection._gltf,
basePath : collection._basePath,
shadows : collection._shadows,
cacheKey : undefined,
asynchronous : collection._asynchronous,
allowPicking : collection._allowPicking,
Expand Down

0 comments on commit 6bec60d

Please sign in to comment.