Skip to content

Conversation

@stavrosfa
Copy link
Contributor

@stavrosfa stavrosfa commented Nov 12, 2025

Basically what the title says.

An alternative way of doing this that I tested, instead of exposing a public getter for ModernGraphicsActive and checking it in the ResourceLayer, would be to add an empty texture so Lua doesn't freak out, and render a cropped region of nothing (since newer graphics can simply contain their shadows in the same image) when the new graphics are enabled, which I didn't like, it's just wasted draw calls.

Maybe a boolean in Lua like "Civ3Exclusive" would be helpful, but then the Texture.Load() would have to return null or something that doesn't break everything and can be checked by the caller merhod in order to skip the draw call.

Let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant