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

Ensure albedo texture size is available for Label3D and Sprite3D #102208

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clayjohn
Copy link
Member

Fixes: #102180

Regression from: #100280

Neither Label3D nor Sprite3D were setting the "albedo_texture_size" uniform. So when we started using the uniform instead of calculating the size in the shader it broke MSDF.

As a nice side effect, this PR also fixes alpha hash edge antialiasing for Sprite3D and Label3D!

Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't tested but makes sense and was my assumption of the cause after checking the code

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally on the 3D Labels and Texts and 3D Anti-Aliasing demos, it works as expected in all rendering methods. However, #98173 is not resolved by this PR (since it's a missing feature).

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.

Label3D with MSDF has aliasing
4 participants