Skip to content

Commit

Permalink
Merge pull request #306 from LinkunGao/feat/v2.1.1
Browse files Browse the repository at this point in the history
fix render bug
  • Loading branch information
LinkunGao authored Oct 3, 2024
2 parents 4109708 + 8087166 commit e4149f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "copper3d",
"description": "A 3d visualisation package base on threejs provides multiple scenes and Nrrd image load funtion.",
"version": "2.1.0",
"version": "2.1.1",
"main": "dist/bundle.umd.js",
"moudle": "dist/bundle.esm.js",
"types": "dist/types/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/Renderer/baseRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class baseRenderer {
this.container.appendChild(this.renderer.domElement);
}
updateEnvironment(vignette?: customMeshType) {
if(!!this.options?.alpha) return;
const environment = environments.filter(
(entry) => entry.name === "Venice Sunset"
)[0];
Expand Down
4 changes: 3 additions & 1 deletion src/Renderer/copperRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export class copperRenderer extends baseRenderer {
alpha: alpha,
});
new_scene.sceneName = name;
this.updateEnvironment(new_scene.vignette);
if(!alpha){
this.updateEnvironment(new_scene.vignette);
}
this.sceneMap[name] = new_scene;
return new_scene;
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ import { IPaintImage, ICommXYZ } from "./Utils/segmentation/coreTools/coreType";

import "./css/style.css";

export const REVISION = "v2.1.0";
export const REVISION = "v2.1.1";

console.log(
"%cCopper3D Visualisation %cBeta:v2.1.0",
"%cCopper3D Visualisation %cBeta:v2.1.1",
"padding: 3px;color:white; background:#023047",
"padding: 3px;color:white; background:#f50a25"
);
Expand Down

0 comments on commit e4149f7

Please sign in to comment.