feat(render3d): the lake answers to a body standing in it

water.frag takes u_wade - a point and a strength - and puts spreading rings and a
patch of churn into the surface normals there, so a wader marks the water and a
swimmer works the whole of it. It is one uniform in a fragment stage that was
already running, applied after the distance flattening so a disturbance close to
the camera survives it, and it measures no frame cost at all.

Also records the two renderer features that shipped without a changeset.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-19 20:23:27 +03:00
parent 5ca14eeaec
commit 4975c60ac1
6 changed files with 62 additions and 7 deletions

View file

@ -3076,7 +3076,7 @@ U 46e2325c vert u_level 128 float 1 0
U 46e2325c vert u_center 136 vec2 1 0
U 46e2325c vert u_extent 144 vec2 1 0
I 46e2325c a_xz 0 vec2
B 46e2325c frag 1 996
B 46e2325c frag 1 1012
U 46e2325c frag u_cascade_vp 0 mat4 5 64
U 46e2325c frag u_cascade_split 320 float 5 16
U 46e2325c frag u_cascade_range 400 float 5 16
@ -3112,12 +3112,13 @@ U 46e2325c frag u_time 808 float 1 0
U 46e2325c frag u_fog_inscatter 812 float 1 0
U 46e2325c frag u_fog_desat 816 float 1 0
U 46e2325c frag u_view 832 mat4 1 0
U 46e2325c frag u_inv_vp 896 mat4 1 0
U 46e2325c frag u_screen 960 vec2 1 0
U 46e2325c frag u_refl_on 968 float 1 0
U 46e2325c frag u_center 976 vec2 1 0
U 46e2325c frag u_extent 984 vec2 1 0
U 46e2325c frag u_clip_ellipse 992 float 1 0
U 46e2325c frag u_wade 896 vec3 1 0
U 46e2325c frag u_inv_vp 912 mat4 1 0
U 46e2325c frag u_screen 976 vec2 1 0
U 46e2325c frag u_refl_on 984 float 1 0
U 46e2325c frag u_center 992 vec2 1 0
U 46e2325c frag u_extent 1000 vec2 1 0
U 46e2325c frag u_clip_ellipse 1008 float 1 0
T 46e2325c u_brdf 2
T 46e2325c u_depth 3
T 46e2325c u_irradiance 4