Skip to content

Commit

Permalink
Enable alpha test for hotspots
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Jan 20, 2025
1 parent 2fcef75 commit 68204bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/assets/scripts/annotation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export class Annotation extends Script {
Annotation.materialNormal.emissiveMap = textureNormal;
Annotation.materialNormal.opacityMap = textureNormal;
Annotation.materialNormal.blendState = BlendState.ALPHABLEND;
Annotation.materialNormal.alphaTest = 0.01;
Annotation.materialNormal.depthTest = true;
Annotation.materialNormal.depthWrite = true;
Annotation.materialNormal.cull = CULLFACE_NONE;
Expand All @@ -237,6 +238,7 @@ export class Annotation extends Script {
Annotation.materialMuted.emissiveMap = textureMuted;
Annotation.materialMuted.opacityMap = textureMuted;
Annotation.materialMuted.opacity = 0.25;
Annotation.materialMuted.alphaTest = 0.01;
Annotation.materialMuted.blendState = BlendState.ALPHABLEND;
Annotation.materialMuted.depthWrite = true;
Annotation.materialMuted.depthTest = false;
Expand Down

0 comments on commit 68204bf

Please sign in to comment.