[claude] Remove _placeholderCanvas 404-fixer code (#427) #435
13
app.js
13
app.js
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user