Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Hidden test runs: `--hidden` runs the game silently without showing its window, and `--capture-frame` then reads the game's offscreen picture. `--mute` runs without a sound device.

### Fixed
- Character shadows no longer vanish with anti-aliasing on (Video tab).
- Town water no longer turns into a mirror of the cliffs after the menu has been opened.

### Changed
Expand Down
6 changes: 6 additions & 0 deletions runtime/dc_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2213,6 +2213,12 @@ namespace dc::native
// texture shares its Z buffer): where a character stands in front of the ground, its depth hides the flattened
// shadow, the work texture stays unmarked and the character is not darkened.
mark.depthTest = true;
// With anti-aliasing the shared depth is resolved from one sample point off each pixel's centre: on sloping
// ground it can lie nearer than the mark's centre depth, and every mark failed (the shadows vanished). The
// marks are moved toward the camera by up to a pixel's depth slope then; without anti-aliasing they stay at
// the ground's own depth, as on the GS.
if (renderer.antiAliasing() >= 2)
mark.depthOffsetSlope = mark.depthOffsetUnits = 1.0f;
for (ShadowDraw &draw : draws)
{
for (bozo::render::Vertex &v : draw.vertices)
Expand Down
Loading