Fix displacement map rendering in UI (#38042)

Fix displacement map rendering

918709cb47 changed the way humans work to completely remove the stencil mask thing for clothing cutouts, in favor of displacement maps. Except it didn't actually remove the stencil parameters from the shader prototype, so this caused the shader to render incorrectly in SpriteView instances.

I introduced a new DisplacedDraw shader that doesn't have the stencil in use, as removing the old one would probably be a more annoying breaking change.

Fixes #37629
This commit is contained in:
Pieter-Jan Briers
2025-06-24 22:47:29 +02:00
committed by GitHub
parent 9529cdfa2e
commit f5071238ce
3 changed files with 9 additions and 2 deletions

View File

@@ -10,5 +10,5 @@ public sealed partial class DisplacementData
public Dictionary<int, PrototypeLayerData> SizeMaps = new();
[DataField]
public string? ShaderOverride = "DisplacedStencilDraw";
public string? ShaderOverride = "DisplacedDraw";
}