Skip to content

Commit

Permalink
fix(media): fix ChromaKeyMaterial error
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Nov 1, 2023
1 parent 17b739d commit e90839d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/media-extention/ChromaKeyMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export class ChromaKeyMaterial extends Material {
shaderState.castShadow = false;
shaderState.useZ = false;
shaderState.blendMode = BlendMode.ALPHA;

this.shader = newShader;

// default value
this.shader.setTexture(`baseMap`, Engine3D.res.whiteTexture);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/media-extention/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orillusion/media-extention",
"version": "0.3.2",
"version": "0.3.3",
"author": "Orillusion",
"description": "Orillusion Media Material Extention",
"main": "./dist/media.umd.js",
Expand Down

0 comments on commit e90839d

Please # to comment.