Skip to content

Commit

Permalink
Disable shadows on image and text elements
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Aug 11, 2017
1 parent 17c7e7f commit 91b7e1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/framework/components/element/image-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ pc.extend(pc, function () {
this._model = new pc.Model();
this._model.graph = this._node;
this._meshInstance = new pc.MeshInstance(this._node, this._mesh, this._material);
this._meshInstance.castShadow = false;
this._meshInstance.receiveShadow = false;
this._model.meshInstances.push(this._meshInstance);
this._drawOrder = 0;

Expand Down
2 changes: 2 additions & 0 deletions src/framework/components/element/text-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ pc.extend(pc, function () {
this._model = new pc.Model();
this._model.graph = this._node;
this._meshInstance = new pc.MeshInstance(this._node, this._mesh, this._material);
this._meshInstance.castShadow = false;
this._meshInstance.receiveShadow = false;
this._model.meshInstances.push(this._meshInstance);

this._meshInstance.drawOrder = this._drawOrder;
Expand Down

0 comments on commit 91b7e1c

Please sign in to comment.