fix(navara): separate always-visible shader programs

This commit is contained in:
German Khokhlov committed 2026-10-29 20:41:13 +04:00
1 parent 8328aab779
commit 0df0fb8261
2 files changed
+29 -1

No files matched your search

+1 -1
View File
@@ -309,7 +309,7 @@ export function createMoverMesh(
alwaysVisible: depthTest === 'always',
});
material.customProgramCacheKey = () =>
`gev-mover-${kind}${encodedAtlas ? '-encoded-atlas' : ''}`;
`gev-mover-${kind}${encodedAtlas ? '-encoded-atlas' : ''}${depthTest === 'always' ? '-always-visible' : ''}`;
const mesh = new InstancedMesh(geometry, material, capacity);
mesh.userData.gevStaticSprite =
kind === 'sprite' &&