Skip to content

Commit 68204bf

Browse files
committed
Enable alpha test for hotspots
1 parent 2fcef75 commit 68204bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/assets/scripts/annotation.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export class Annotation extends Script {
225225
Annotation.materialNormal.emissiveMap = textureNormal;
226226
Annotation.materialNormal.opacityMap = textureNormal;
227227
Annotation.materialNormal.blendState = BlendState.ALPHABLEND;
228+
Annotation.materialNormal.alphaTest = 0.01;
228229
Annotation.materialNormal.depthTest = true;
229230
Annotation.materialNormal.depthWrite = true;
230231
Annotation.materialNormal.cull = CULLFACE_NONE;
@@ -237,6 +238,7 @@ export class Annotation extends Script {
237238
Annotation.materialMuted.emissiveMap = textureMuted;
238239
Annotation.materialMuted.opacityMap = textureMuted;
239240
Annotation.materialMuted.opacity = 0.25;
241+
Annotation.materialMuted.alphaTest = 0.01;
240242
Annotation.materialMuted.blendState = BlendState.ALPHABLEND;
241243
Annotation.materialMuted.depthWrite = true;
242244
Annotation.materialMuted.depthTest = false;

0 commit comments

Comments
 (0)