Fixed particles being canceled by fog bulbs

This commit is contained in:
Lwmte 2025-03-17 21:01:15 +01:00
parent 4ed26b1c2d
commit 092346925e
3 changed files with 9 additions and 3 deletions

View file

@ -3,7 +3,13 @@
The dates are in European standard format where date is presented as **YYYY-MM-DD**.
TombEngine releases are located in this repository (alongside with Tomb Editor): https://github.com/TombEngine/TombEditorReleases
## [Version 1.8](link to release) - yyyy-mm-dd
## [Version 1.8.1](link to release) - yyyy-mm-dd
### Bug fixes
* Fixed particles remaining in the level after reloading from the savegame.
* Fixed particles being canceled by fog bulbs.
## [Version 1.8](https://github.com/TombEngine/TombEditorReleases/releases/tag/v1.8) - 2025-03-16
### Bug fixes
* Improved engine performance up to 20%.

View file

@ -106,7 +106,7 @@ float4 PS(PixelShaderInput input) : SV_TARGET
output.w = min(output.w, fade);
}
output.xyz -= float3(input.FogBulbs.w, input.FogBulbs.w, input.FogBulbs.w);
output.xyz *= 1.0f - Luma(input.FogBulbs.xyz);
output.xyz = saturate(output.xyz);
output = DoDistanceFogForPixel(output, float4(0.0f, 0.0f, 0.0f, 0.0f), input.DistanceFog);

View file

@ -82,7 +82,7 @@ float4 PS(PixelShaderInput input) : SV_TARGET
output = DoLaserBeamEffect(input.Position, output, input.UV, FADE_FACTOR, Frame);
}
output.xyz -= float3(input.FogBulbs.w, input.FogBulbs.w, input.FogBulbs.w);
output.xyz *= 1.0f - Luma(input.FogBulbs.xyz);
output.xyz = saturate(output.xyz);
output = DoDistanceFogForPixel(output, float4(0.0f, 0.0f, 0.0f, 0.0f), input.DistanceFog);