Phase 1 Complete: Dungeon Engine & Visuals. Switched to Manual Exploration Plan.

This commit is contained in:
2025-12-31 00:21:07 +01:00
parent e90cfe3664
commit fd1708688a
8 changed files with 287 additions and 227 deletions

View File

@@ -104,17 +104,23 @@ export class GameRenderer {
// Create Plane
const geometry = new THREE.PlaneGeometry(w, l);
// Use MeshStandardMaterial for reaction to light if needed
const material = new THREE.MeshStandardMaterial({
// SWITCH TO BASIC MATERIAL FOR DEBUGGING TEXTURE VISIBILITY
// Standard material heavily depends on lights. If light is not hitting correctly, it looks black.
const material = new THREE.MeshBasicMaterial({
map: texture,
transparent: true,
side: THREE.FrontSide, // Only visible from top
alphaTest: 0.1,
roughness: 0.8,
metalness: 0.2
alphaTest: 0.1
});
const plane = new THREE.Mesh(geometry, material);
// DEBUG: Add a wireframe border to see the physical title limits
const borderGeom = new THREE.EdgesGeometry(geometry);
const borderMat = new THREE.LineBasicMaterial({ color: 0x00ff00, linewidth: 2 });
const border = new THREE.LineSegments(borderGeom, borderMat);
plane.add(border);
// Initial Rotation: Plane X-Y to X-Z
plane.rotation.x = -Math.PI / 2;