warzone2100 icon indicating copy to clipboard operation
warzone2100 copied to clipboard

Opaque structure bases ignore shadows

Open KJeff01 opened this issue 4 years ago • 2 comments

Describe the bug Shadows no longer appear drawn on structure bases (see HQ).

To Reproduce Enable shadows, look at the shadow of a HQ.

Expected behavior Shadows should be visible on opaque base plates... not suddenly appear outside the bounds of the base plate.

Your System:

  • Game version: master

Additional context Caused by commit 7a5a14c43ad83ba0eb0da56fe3301b9d921496df.

KJeff01 avatar Jun 15 '20 02:06 KJeff01

@past-due Our draw order is currently: opaque->shadows->translucent. Because the baseplates are now being forced to be translucent (again) they will be drawn over shadows. If you think it's ok, I can change it so shadows get drawn last and thus will draw over everything.

Doing so will mean shadows will appear on things like blueprints, assembly points, baseplates... and whatever else.

KJeff01 avatar Dec 03 '20 17:12 KJeff01

Any updates on this? Is there no way to have shadows on baseplates while not having them on assembly points? I think that would interfere too much since you want to see those (?).

Evulant avatar Jul 03 '22 18:07 Evulant

With the shadow mapping PR this is no longer an issue.

KJeff01 avatar Sep 17 '23 16:09 KJeff01