ludic/packages/ludic.render3d/shaders/spv
Orkuncakilkaya ab6f310013 feat(render3d): an aspen quakes, and a tree is no longer bent like a bow
layer_flutter(l, v) gives a scatter layer a per-leaf tremble. The vertex stage offsets
each leaf by a phase taken from its own place on the card, so neighbouring leaves are
never in step, and writes the result out as a varying the fragment stage uses to flash
the leaf's pale underside as it turns - which is the part that reads, since a still
frame of a tremble is a still frame of nothing. One uniform, one varying, no extra pass.

And the sway itself was measured in METRES: hgt * hgt * 0.35 is right for a 40 cm
flower and puts ten metres of sideways into a 14 m trunk, so every tall tree in the
valley stood bent over like a fishing rod. It is a fraction of the model's own height
now - the tip moves a few per cent of the tree whatever the tree is, and the base does
not move at all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 21:13:42 +03:00
..
1b654972.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
1b654972.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
1ce5c5d1.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
1ce5c5d1.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
1f95f31b.frag.spv feat(render3d): rain that leaves something behind 2026-09-19 19:43:29 +03:00
1f95f31b.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
1fde9cd2.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
1fde9cd2.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
2e2908c8.frag.spv feat(render3d): rain that leaves something behind 2026-09-19 19:43:29 +03:00
2e2908c8.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
2ee6d2e3.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
2ee6d2e3.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
3b183d8f.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
3b183d8f.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
3e4b62f9.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
3e4b62f9.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4a8e9f28.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4a8e9f28.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4be7acd9.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4be7acd9.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4cf96468.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4cf96468.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4d4fa91b.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4d4fa91b.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
4dda406a.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
4dda406a.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
5e4589a1.frag.spv feat(render3d): rain that leaves something behind 2026-09-19 19:43:29 +03:00
5e4589a1.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
7ed7de52.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
7ed7de52.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
7f096322.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
7f096322.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
9d3e2ddd.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
9d3e2ddd.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
9dce3246.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
9dce3246.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
46e2325c.frag.spv feat(render3d): the lake answers to a body standing in it 2026-09-19 20:23:27 +03:00
46e2325c.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
79b77ed9.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
79b77ed9.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
86f427b0.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
86f427b0.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
254e7887.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
254e7887.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
428caa3a.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
428caa3a.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
439a2253.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
439a2253.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
858f5089.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
858f5089.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
01089da8.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
01089da8.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
3733fc38.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
3733fc38.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
5161e6ba.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
5161e6ba.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
9068df1c.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
9068df1c.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
512004a1.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
512004a1.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
638623c2.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
638623c2.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
676965ab.frag.spv feat(render3d): contact darkening, so things sit ON the ground 2026-09-19 19:49:05 +03:00
676965ab.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
725523d9.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
725523d9.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
74258189.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
74258189.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
a0f2dbac.frag.spv feat(render3d): rain that leaves something behind 2026-09-19 19:43:29 +03:00
a0f2dbac.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
a5ad521e.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
a5ad521e.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
a45356c7.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
a45356c7.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
a64015f2.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
a64015f2.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
a4683767.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
a4683767.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
b9fc2041.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
b9fc2041.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
b79a1f4e.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
b79a1f4e.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
b4587cd4.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
b4587cd4.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
b964507f.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
b964507f.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
bf3151c8.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
bf3151c8.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
bfa15301.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
bfa15301.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
c57b4f14.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
c57b4f14.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
d48d6a48.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
d48d6a48.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
e9b6300c.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
e9b6300c.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
e18e40c9.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
e18e40c9.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
e86f78e8.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
e86f78e8.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
f4a2b586.frag.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
f4a2b586.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
f34dce08.frag.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
f34dce08.vert.spv feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
f2952361.frag.spv feat(render3d): rain that leaves something behind 2026-09-19 19:43:29 +03:00
f2952361.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
f4382918.frag.spv feat(render3d): rain that leaves something behind 2026-09-19 19:43:29 +03:00
f4382918.vert.spv feat(render3d): one wind, and everything in the valley is moved by it 2026-09-19 18:24:43 +03:00
manifest.txt feat(render3d): an aspen quakes, and a tree is no longer bent like a bow 2026-09-19 21:13:42 +03:00
probe.comp.spv feat(render3d): compute and indirect draws on Vulkan, and tree layers culled on the GPU (opt-in) 2026-09-15 14:19:43 +03:00
scatter_cull.comp.spv render3d(vulkan): GPU-driven trees - one merged mesh per material, one draw per material; on by default 2026-09-15 16:44:00 +03:00