fixed broken rain effect

This commit is contained in:
Turánszki János
2026-01-24 15:25:43 +01:00
parent 24824a1c90
commit f6535a6319
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -2158,7 +2158,8 @@ void LoadShaders()
case RENDERPASS_RAINBLOCKER:
{
RenderPassInfo renderpass_info;
renderpass_info.rt_count = 0;
renderpass_info.rt_count = 1;
renderpass_info.rt_formats[0] = format_rendertarget_shadowmap; // Note: crash on Apple when rendertarget format is not set while renderpass has rendertarget (even though we do't use pixel shader for these)
renderpass_info.ds_format = format_depthbuffer_shadowmap;
PipelineState pso;
device->CreatePipelineState(&desc, &pso, &renderpass_info);
@@ -6021,7 +6022,7 @@ void DrawSoftParticles(
)
{
size_t emitterCount = vis.visibleEmitters.size();
if (emitterCount == 0)
if (emitterCount == 0 && vis.scene->weather.rain_amount == 0)
return;
auto range = distortion ?
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 72;
// minor bug fixes, alterations, refactors, updates
const int revision = 16;
const int revision = 17;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);