		switch(materialData.material){
			case "chrome":
			case "iridescent":
				if(this.realisticLighting) {
					let metalnessCanvas = document.createElement("canvas");
					metalnessCanvas.width = canvasBump.width;
					metalnessCanvas.height = canvasBump.height;
					let mCtx = metalnessCanvas.getContext("2d");
					const packedTex = scopedTextureCache[materialSelected.scopedOptions.metalnessMap];
					if(packedTex?.image) {
						const frame = scopedTextureCache._atlasFrames?.[materialSelected.scopedOptions.metalnessMap];
						if (frame) {
							mCtx.drawImage(packedTex.image, frame.x, frame.y, frame.w, frame.h, 0, 0, metalnessCanvas.width, metalnessCanvas.height);
						} else {
							mCtx.drawImage(packedTex.image, 0, 0, metalnessCanvas.width, metalnessCanvas.height);
						}
					} else {
						mCtx.fillStyle = "#0000ff";
						mCtx.fillRect(0, 0, metalnessCanvas.width, metalnessCanvas.height);
					}
					mCtx.globalCompositeOperation = 'multiply';
					mCtx.drawImage(canvasBump, 0, 0);
					let heightMap = new CanvasTexture(metalnessCanvas);
					heightMap.flipY = false;
					mat.metalnessMap = heightMap;
					mat.userData.heightMap = heightMap;
				}
				break;
		}
		