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

Update the associated uniforms every frame for materials with attached Streams #8493

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ajmalk
Copy link

@ajmalk ajmalk commented Mar 5, 2025

Followup to #8490

From: https://developer.android.com/reference/android/graphics/SurfaceTexture

When sampling from the texture one should first transform the texture coordinates using the matrix queried via getTransformMatrix(float[]). The transform matrix may change each time updateTexImage() is called, so it should be re-queried each time the texture image is updated.

Updating the uniform every frame is the last step to being able to access it in the shader.

@ajmalk
Copy link
Author

ajmalk commented Mar 5, 2025

I had to cherry pick some of the changes from the other PRs to get this to build. The relevant changes are in the very last commit.

@pixelflinger pixelflinger requested review from z3moon and poweifeng March 5, 2025 19:27
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.

2 participants