mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix Vulkan shadow light direction and restore ground-clutter cutout visibility
This commit is contained in:
parent
bd0305f6dd
commit
2c5e0dd313
3 changed files with 12 additions and 5 deletions
|
|
@ -2073,7 +2073,7 @@ void M2Renderer::render(VkCommandBuffer cmd, VkDescriptorSet perFrameSet, const
|
|||
}
|
||||
if (model.isGroundDetail) {
|
||||
// Keep clutter local so distant grass doesn't overdraw the scene.
|
||||
effectiveMaxDistSq *= 0.45f;
|
||||
effectiveMaxDistSq *= 0.75f;
|
||||
}
|
||||
// Removed aggressive small-object distance caps to prevent city pop-out
|
||||
// Small props (barrels, lanterns, etc.) now use same distance as larger objects
|
||||
|
|
@ -2360,7 +2360,9 @@ void M2Renderer::render(VkCommandBuffer cmd, VkDescriptorSet perFrameSet, const
|
|||
}
|
||||
// Cutout path for foliage/cards.
|
||||
if (forceCutout) {
|
||||
mat->alphaTest = foliageCutout ? 2 : 1;
|
||||
// Ground clutter uses a softer dedicated cutout mode so thin
|
||||
// grass cards are not over-discarded.
|
||||
mat->alphaTest = model.isGroundDetail ? 3 : (foliageCutout ? 2 : 1);
|
||||
if (model.isGroundDetail) {
|
||||
mat->unlit = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue