Commit 7ae4d758 by Googler Committed by Tianyi Feng

[Media3][Shader] Reset the composite RGB matrix upon update

Since the composite matrix is ultimately rewritten to, we need to ensure it's cleared (to identity) before update.

Test plan: use an effect as a time based approach and see that the effect no longer clips

PiperOrigin-RevId: 518886623
parent e79b764e
......@@ -535,6 +535,8 @@ import java.util.List;
return;
}
GlUtil.setToIdentity(compositeRgbMatrixArray);
for (int i = 0; i < rgbMatrices.size(); i++) {
Matrix.multiplyMM(
/* result= */ tempResultMatrix,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment