]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix displacement map rendering in UI (#38042)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Tue, 24 Jun 2025 20:47:29 +0000 (22:47 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Jun 2025 20:47:29 +0000 (22:47 +0200)
commitf5071238cefe9d276fdcc871f8d9f069ddff0ce6
tree0339c85d127a688e927bc774000816944a47e63b
parent9529cdfa2e48834153e31803c63ad179c347dc38
Fix displacement map rendering in UI (#38042)

Fix displacement map rendering

918709cb4742d02e9822a651cf8e74727ba997de 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
Content.Client/Holopad/HolopadSystem.cs
Content.Shared/DisplacementMap/DisplacementData.cs
Resources/Prototypes/Shaders/displacement.yml