mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 17:37:09 +01:00
f9787e7062
The glass of the snow laid its nine grids of lumps (81 cells) and its flakes at every pixel in every frame, ~6-9 ms of the GPU at 1080p. Now a compute pass (water_snowlayer.comp, the sprites in snow_sprites.glsl) lays the snow of a glass into a layer of 1024 x 1024 texels over its uv after the step of the snow: a band of every 8th row in a step (the snow under a lump changes slowly) and at once wherever a blade went over the glass. The glass reads the layer filtered (mat_snow_windscreen.frag), as the glass of the rain reads its cells. Laid front to back: a texel stops once the snow over it covers it, and a cell reads the map only when its sprite reaches the texel. The storage of the water grows by the layers, 12 MiB for each of the four glasses. The look stays as it was. No assets change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD