From 3c8991be779cb93431a95fab032c21a3999d7938 Mon Sep 17 00:00:00 2001 From: Jamie Cope Date: Thu, 30 Nov 2023 13:29:22 -0500 Subject: [PATCH] Exclude annotation materials from tonemapping --- source/client/annotations/CircleSprite.ts | 3 +++ source/client/annotations/ExtendedSprite.ts | 1 + source/client/annotations/StandardSprite.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/source/client/annotations/CircleSprite.ts b/source/client/annotations/CircleSprite.ts index ee9f3b34..61847213 100755 --- a/source/client/annotations/CircleSprite.ts +++ b/source/client/annotations/CircleSprite.ts @@ -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 }), diff --git a/source/client/annotations/ExtendedSprite.ts b/source/client/annotations/ExtendedSprite.ts index 03378cd5..851f04a5 100755 --- a/source/client/annotations/ExtendedSprite.ts +++ b/source/client/annotations/ExtendedSprite.ts @@ -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; diff --git a/source/client/annotations/StandardSprite.ts b/source/client/annotations/StandardSprite.ts index 77e37153..965b42b7 100755 --- a/source/client/annotations/StandardSprite.ts +++ b/source/client/annotations/StandardSprite.ts @@ -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;