Skip to content

Commit

Permalink
Exclude annotation materials from tonemapping
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcope committed Nov 30, 2023
1 parent 9f8bebf commit 3c8991b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/client/annotations/CircleSprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ export default class CircleSprite extends AnnotationSprite
this.ringMaterialB,
);

this.ringMaterialA.toneMapped = false;
this.ringMaterialB.toneMapped = false;

const innerCircle = new Mesh(
new CircleGeometry(0.45, 32),
new MeshBasicMaterial({ color: 0, opacity: 0.65, transparent: true }),
Expand Down
1 change: 1 addition & 0 deletions source/client/annotations/ExtendedSprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default class ExtendedSprite extends AnnotationSprite

const geometry = new BufferGeometry().setFromPoints(points);
const material = new LineBasicMaterial({ color: "#009cde", transparent: true });
material.toneMapped = false;

this.stemLine = new Line(geometry, material);
this.stemLine.frustumCulled = false;
Expand Down
1 change: 1 addition & 0 deletions source/client/annotations/StandardSprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default class StandardSprite extends AnnotationSprite

const geometry = new BufferGeometry().setFromPoints(points);
const material = new LineBasicMaterial({ color: "#009cde", transparent: true });
material.toneMapped = false;

this.stemLine = new Line(geometry, material);
this.stemLine.frustumCulled = false;
Expand Down

0 comments on commit 3c8991b

Please sign in to comment.