Fixed sprite display for some screens.

This commit is contained in:
Krafpy
2022-12-18 14:43:32 +01:00
parent 2b3570f579
commit aefe05e45b
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,8 @@ export class SpriteManager {
const promise = new Promise((resolve, _) => {
textureLoader.load(path, (texture) => {
const material = new THREE.SpriteMaterial({
map: texture
map: texture,
depthWrite: false,
});
this._spriteMaterials.set(name, material);
resolve(true);

View File

@@ -9,7 +9,8 @@ export abstract class SpriteManager {
const promise = new Promise<boolean>((resolve, _) => {
textureLoader.load(path, (texture: THREE.Texture) => {
const material = new THREE.SpriteMaterial({
map: texture
map: texture,
depthWrite: false,
});
this._spriteMaterials.set(name, material);
resolve(true);