Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/audio/sounds.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"clusterRadius": 15
},
"attack_power_cannon": {
"url": "/audio/combat/power_cannon.mp3",
"url": "/audio/combat/yamato.mp3",
"volume": 0.8,
"spatial": true,
"maxInstances": 3,
Expand Down
2 changes: 1 addition & 1 deletion src/engine/workers/GameWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ export class WorkerGame extends GameCore {
public spawnInitialEntities(mapData: SpawnMapData): void {
// Idempotency guard - prevent duplicate entity spawning
if (this.entitiesAlreadySpawned) {
console.warn('[GameWorker] spawnInitialEntities called multiple times - skipping duplicate spawn');
debugInitialization.log('[GameWorker] spawnInitialEntities called multiple times - skipping duplicate spawn');
return;
}
this.entitiesAlreadySpawned = true;
Expand Down
5 changes: 3 additions & 2 deletions src/rendering/tsl/VolumetricFog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
int,
uniform,
uv,
texture,
clamp,
smoothstep,
mix,
Expand Down Expand Up @@ -104,7 +103,9 @@ export function createVolumetricFogNode(
const enabled = uEnabled.greaterThan(0.5);

// Sample depth and convert to linear
const depthSample = texture(depthTexture, fragUV).r;
// depthTexture is already a texture node from scenePass.getTextureNode('depth'),
// so use .sample() instead of texture() which expects a raw THREE.Texture
const depthSample = depthTexture.sample(fragUV).r;

// Convert depth to linear distance
const z = depthSample.mul(2.0).sub(1.0);
Expand Down