Skip to content

Commit

Permalink
fix(particle): add get baseMap
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Sep 15, 2023
1 parent 21a8e70 commit e59bd9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/particle/material/ParticleMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export class ParticleMaterial extends Material {
this.defaultPass.setTexture(`baseMap`, texture);
}

public get baseMap() {
return this.defaultPass.getTexture(`baseMap`);
}

public set envMap(texture: Texture) {
//not need env texture
}
Expand Down
2 changes: 1 addition & 1 deletion packages/particle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orillusion/particle",
"version": "0.0.2",
"version": "0.0.3",
"author": "Orillusion",
"description": "Orillusion Particle Plugin",
"main": "./dist/particle.umd.js",
Expand Down

0 comments on commit e59bd9f

Please sign in to comment.