Skip to content

Commit

Permalink
Updated emissive tint handling to be compatible with engine 2.0.0 cha…
Browse files Browse the repository at this point in the history
…nges (#89)

Co-authored-by: Martin Valigursky <[email protected]>
  • Loading branch information
mvaligursky and Martin Valigursky authored Jul 9, 2024
1 parent 7620057 commit 4159557
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions build/playcanvas-spine.3.6.js
Original file line number Diff line number Diff line change
Expand Up @@ -7930,6 +7930,7 @@ var spine = (function (pc) {
var material = new pc__namespace.StandardMaterial();
material.emissiveMap = texture;
material.emissiveVertexColor = true;
material.emissive = pc__namespace.Color.WHITE;
material.opacityMap = texture;
material.opacityVertexColor = true;
material.depthWrite = false;
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.6.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/playcanvas-spine.3.8.js
Original file line number Diff line number Diff line change
Expand Up @@ -9438,6 +9438,7 @@ var spine = (function (pc) {
var material = new pc__namespace.StandardMaterial();
material.emissiveMap = texture;
material.emissiveVertexColor = true;
material.emissive = pc__namespace.Color.WHITE;
material.opacityMap = texture;
material.opacityVertexColor = true;
material.depthWrite = false;
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.3.8.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/playcanvas-spine.4.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -11423,6 +11423,7 @@ var spine = (function (pc) {
var material = new pc__namespace.StandardMaterial();
material.emissiveMap = texture;
material.emissiveVertexColor = true;
material.emissive = pc__namespace.Color.WHITE;
material.opacityMap = texture;
material.opacityVertexColor = true;
material.depthWrite = false;
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.4.0.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/playcanvas-spine.4.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -11742,6 +11742,7 @@ var spine = (function (pc) {
var material = new pc__namespace.StandardMaterial();
material.emissiveMap = texture;
material.emissiveVertexColor = true;
material.emissive = pc__namespace.Color.WHITE;
material.opacityMap = texture;
material.opacityVertexColor = true;
material.depthWrite = false;
Expand Down
2 changes: 1 addition & 1 deletion build/playcanvas-spine.4.1.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/component/Spine.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ class Spine {

material.emissiveMap = texture;
material.emissiveVertexColor = true;
material.emissive = pc.Color.WHITE;

material.opacityMap = texture;
material.opacityVertexColor = true;
Expand Down

0 comments on commit 4159557

Please sign in to comment.