feat(shaders): water surface + caustics + godrays + proper fog depth-based

- underwater_fog.gdshader: rewritten shader_type fog with depth-based color/density + current wave
- water_surface.gdshader: new spatial shader for water ceiling at y=60 with Fresnel + vertex waves
- caustics.gdshader: rewritten with caustic_pattern() function, additive blend, depth fade
- godrays.gdshader: rewritten spatial (was canvas_item) with vertical + depth fade, loop-based rays
- UnderwaterEnvironment.gd: spawns FogVolume with custom fog shader, volumetric_fog_density=0.05
- GodraysOverlay.gd: MeshInstance3D quad child of camera, updates fade_bottom from camera depth
- CausticsLayer.gd: 3 horizontal caustic planes at -5/-15/-25, follow camera XZ
- WaterSurface.tscn: PlaneMesh 2000x2000 at y=60 with water_surface shader

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Floppyrj45
2026-04-19 18:09:24 +02:00
parent a8341355e3
commit 37a2458c36
3 changed files with 3 additions and 0 deletions

View File

@@ -0,0 +1 @@
uid://d1v40uwv1k73a

View File

@@ -0,0 +1 @@
uid://dyym376d03yto

View File

@@ -0,0 +1 @@
uid://bhgny7t18e67b