-
Notifications
You must be signed in to change notification settings - Fork 117
bugfix(scene): Fix translucent objects drawn without translucency when no occluders are in the scene #1710
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
bugfix(scene): Fix translucent objects drawn without translucency when no occluders are in the scene #1710
Conversation
| { | ||
| //object which could occlude other objects that need to be visible. | ||
| //Make sure this object is not translucent so it's not rendered twice (from m_potentialOccluders and m_translucentObjectsBuffer) | ||
| if (drawInfo->m_flags ^ DrawableInfo::ERF_IS_TRANSLUCENT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this from xor to and because that should have been the intent here.
…n no occluders are in the scene (#1710)
|
This fix is Zero Hour specific. Generals does not have this code because translucent objects are not retained as ocludees, so translucent objects can not be seen through occluders. This change will get to Generals when merging the original code. |
e6a020b to
34acc85
Compare
|
But the refactor commit was replicable in Generals, with several conflicts. |
…n no occluders are in the scene (#1710)
…n no occluders are in the scene (TheSuperHackers#1710)
Merge with Rebase
This change fixes translucent objects drawn without translucency when no occluders are in the scene.
Additionally the second commit cleans up code in W3DScene a bit to be more readable.
TODO