Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add puddle drawdepth #32369

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

metalgearsloth
Copy link
Contributor

The y-fighting it hurts.

🆑

  • fix: Puddles will now draw below floor objects like vents.

Copy link
Member

@slarticodefast slarticodefast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gave it an in-game test and it will need some adjustments:

Since atmos devices now draw over puddles it causes problems for the pipes sticking out of them. Can the draw depth be set per layer? Also connector ports still draw below the puddle.
grafik

Ice crust and conveyors draw over puddles, which looks wrong.
grafik

A lazy solution for this might be to make puddles Default - 7 and FloorTiles Default - 6 so that puddles always draw over them.

FloorTiles = DrawDepthTag.Default - 7,

// Discrete drawdepth to avoid y-fighting with other FloorObjects but also above floor entities.
Puddles = DrawDepthTag.Default - 6,

/// <summary>
/// Things that are actually right on the floor, like puddles. This does not mean objects like
Copy link
Member

@slarticodefast slarticodefast Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Things that are actually right on the floor, like puddles. This does not mean objects like
/// Things that are actually right on the floor, like conveyor belts, ice crust or atmos devices. This does not mean objects like

@slarticodefast slarticodefast self-assigned this Oct 30, 2024
@slarticodefast slarticodefast added the Status: Awaiting Changes This PR needs its reviews addressed or changes to be made in order to be merged. label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting Changes This PR needs its reviews addressed or changes to be made in order to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants