src/core/AssetManager.js
/**
	* Loads all textures from the backend.
	*
	* @return {AssetManager} A reference to this asset manager.
	*/
Loads all textures from the backend.
@return {AssetManager} A reference to this asset manager.
Loads all textures from the backend . @return { AssetManager } A reference to this asset manager .
_loadTextures() {
		const textureLoader = this.textureLoader;
		let texture = textureLoader.load( './textures/crosshairs.png' );
		texture.matrixAutoUpdate = false;
		this.textures.set( 'crosshairs', texture );
		texture = textureLoader.load( './textures/damageIndicatorFront.png' );
		texture.matrixAutoUpdate = false;
		this.textures.set( 'damageIndicatorFront', texture );
		texture = textureLoader.load( './textures/damageIndicatorRight.png' );
		texture.matrixAutoUpdate = false;
		this.textures.set( 'damageIndicatorRight', texture );
		texture = textureLoader.load( './textures/damageIndicatorLeft.png' );
		texture.matrixAutoUpdate = false;
		this.textures.set( 'damageIndicatorLeft', texture );
		texture = textureLoader.load( './textures/damageIndicatorBack.png' );
		texture.matrixAutoUpdate = false;
		this.textures.set( 'damageIndicatorBack', texture );
		return this;
	}
_loadTextures ( ) { const textureLoader = this . textureLoader ; let texture = textureLoader . load ( './textures/crosshairs.png' ) ; texture . matrixAutoUpdate = false ; this . textures . set ( 'crosshairs' , texture ) ; texture = textureLoader . load ( './textures/damageIndicatorFront.png' ) ; texture . matrixAutoUpdate = false ; this . textures . set ( 'damageIndicatorFront' , texture ) ; texture = textureLoader . load ( './textures/damageIndicatorRight.png' ) ; texture . matrixAutoUpdate = false ; this . textures . set ( 'damageIndicatorRight' , texture ) ; texture = textureLoader . load ( './textures/damageIndicatorLeft.png' ) ; texture . matrixAutoUpdate = false ; this . textures . set ( 'damageIndicatorLeft' , texture ) ; texture = textureLoader . load ( './textures/damageIndicatorBack.png' ) ; texture . matrixAutoUpdate = false ; this . textures . set ( 'damageIndicatorBack' , texture ) ; return this ; }
Loads all textures from the backend.
Loads all textures from the backend .