mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Add missing blob shadows for objects
This commit is contained in:
parent
cf8d642e4e
commit
610b7dc942
4 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ TombEngine releases are located in this repository (alongside with Tomb Editor):
|
|||
* Fixed rare case of not being able to start a new game or exit game from the main menu on very slow GPUs.
|
||||
* Fixed occasional crashes with creatures stuck in a sector with no pathfinding set.
|
||||
* Fixed occasional cases of underwater switch animation not playing, if player spams jump key while pulling the switch.
|
||||
* Fixed Lara's blob shadows not rendering on moveables and static meshes.
|
||||
* Fixed antialiasing quality not changing after changing it in display settings.
|
||||
* Fixed endless explosion effect for Puna.
|
||||
* Fixed diary pick-up item inventory state not preserved in the savegame.
|
||||
|
|
|
@ -126,6 +126,7 @@ PixelShaderOutput PS(PixelShaderInput input)
|
|||
StaticLight(input.Color.xyz, tex.xyz, input.FogBulbs.w);
|
||||
|
||||
color = DoShadow(input.WorldPosition, normal, color, -0.5f);
|
||||
color = DoBlobShadows(input.WorldPosition, color);
|
||||
|
||||
output.Color = float4(color * occlusion, tex.w);
|
||||
output.Color = DoFogBulbsForPixel(output.Color, float4(input.FogBulbs.xyz, 1.0f));
|
||||
|
|
|
@ -157,6 +157,7 @@ PixelShaderOutput PS(PixelShaderInput input)
|
|||
|
||||
float shadowable = step(0.5f, float((NumItemLights & SHADOWABLE_MASK) == SHADOWABLE_MASK));
|
||||
float3 shadow = DoShadow(input.WorldPosition, normal, color, -0.5f);
|
||||
shadow = DoBlobShadows(input.WorldPosition, shadow);
|
||||
color = lerp(color, shadow, shadowable);
|
||||
|
||||
output.Color = saturate(float4(color * occlusion, tex.w));
|
||||
|
|
|
@ -94,6 +94,7 @@ PixelShaderOutput PS(PixelShaderInput input)
|
|||
StaticLight(input.Color.xyz, tex.xyz, input.FogBulbs.w);
|
||||
|
||||
color = DoShadow(input.WorldPosition, normal, color, -0.5f);
|
||||
color = DoBlobShadows(input.WorldPosition, color);
|
||||
|
||||
output.Color = float4(color, tex.w);
|
||||
output.Color = DoFogBulbsForPixel(output.Color, float4(input.FogBulbs.xyz, 1.0f));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue