[claude] Remove _placeholderCanvas 404-fixer code (#427) #435

Merged
Timmy merged 1 commits from claude/issue-427 into main 2026-03-24 18:13:36 +00:00

13
app.js
View File

@@ -32,19 +32,6 @@ loadingManager.onProgress = (url, itemsLoaded, itemsTotal) => {
document.getElementById('loading-bar').style.width = `${progress}%`;
};
// Procedural placeholder texture — avoids 404 for missing placeholder-texture.jpg
const _placeholderCanvas = document.createElement('canvas');
_placeholderCanvas.width = 64;
_placeholderCanvas.height = 64;
const _placeholderCtx = _placeholderCanvas.getContext('2d');
_placeholderCtx.fillStyle = '#0a0a18';
_placeholderCtx.fillRect(0, 0, 64, 64);
const placeholderTexture = new THREE.CanvasTexture(_placeholderCanvas);
loadedAssets.set('placeholder-texture', placeholderTexture);
// Notify loading manager so it still counts one asset
loadingManager.itemStart('placeholder-texture');
loadingManager.itemEnd('placeholder-texture');
// === MATRIX RAIN ===
// 2D canvas layer rendered behind the Three.js scene.
const matrixCanvas = document.createElement('canvas');