18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 11:56:50 +01:00

Rain windscreen: the cells of the drops and rivulets worked out once a frame

The glass with rain worked out, in every pixel, the hashes and the life cycles of the 9 drop cells around it, of the rivulet
cells of its 5 layers and of those the drops are swept by. A compute pass (rain_cells.comp) now does it once a frame for every
cell into a buffer (rain_cells.glsl: RAIN_CELLS_SSBO in the pass set of Vulkan 1.4, binding 18 in OpenGL 4.6); the glass only
reads it, and asks the wipers only for the drops the pixel lies on. The hashes are the same, so the drops and the rivulets
are where they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
This commit is contained in:
Claude
2026-11-03 15:54:28 +01:00
parent 339d70a6e6
commit 394e252daf
19 changed files with 674 additions and 196 deletions
+1
View File
@@ -898,6 +898,7 @@ std::string binding_preamble(bool const Raytracing)
define("SKY_OCCLUSION_HEIGHT_TEX", SKY_OCCLUSION_HEIGHT_TEX);
define("SKY_OCCLUSION_TEX", SKY_OCCLUSION_TEX);
define("CAB_PROBE_MASK_TEX", CAB_PROBE_MASK_TEX);
define("RAIN_CELLS_SSBO", RAIN_CELLS_SSBO);
define("PASS_BINDING_COUNT", PASS_BINDING_COUNT);
define("MATERIAL_TEXTURE_FIRST", MATERIAL_TEXTURE_FIRST);
define("CL_CLUSTER_UBO", CL_CLUSTER_UBO);