mirror of
https://github.com/Krafpy/KSP-MGA-Planner.git
synced 2026-06-12 19:11:22 -07:00
Fixed sprite display for some screens.
This commit is contained in:
Vendored
+2
-1
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user