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 shadow rendering for resource sprites. #19059

Merged
merged 1 commit into from Jan 23, 2021

Conversation

pchote
Copy link
Member

@pchote pchote commented Jan 16, 2021

This PR reimplements #18814 on top of the new TerrainSpriteLayer code.

Closes #18780.

The shadow layer is only created if at least one of the resource sequences defines shadow sprites, so the impact on non-ts mods should be negligible (and TS already defines shadows in its sequences).

@teinarss
Copy link
Contributor

Looks like the shadow is rendered where there is no (or very little) tib.

image

@pchote
Copy link
Member Author

pchote commented Jan 21, 2021

After some investigation, i'm pretty sure that is caused by #12229. Increasing the tiberium's Offset z coordinate restores the missing sprite, but we should fix the underlying problem instead of bodging that. We shouldn't try to fix that here, but this has become another useful testcase.

@reaperrr reaperrr merged commit 889153c into OpenRA:bleed Jan 23, 2021
@pchote pchote deleted the multi-sheet-resource-renderer branch April 8, 2021 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TS] Resources cannot support split shadows.
3 participants