mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
[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
This commit is contained in:
parent
69cece1d82
commit
67f8fbf3bd
1 changed files with 2 additions and 0 deletions
|
|
@ -537,6 +537,8 @@ import java.util.List;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GlUtil.setToIdentity(compositeRgbMatrixArray);
|
||||||
|
|
||||||
for (int i = 0; i < rgbMatrices.size(); i++) {
|
for (int i = 0; i < rgbMatrices.size(); i++) {
|
||||||
Matrix.multiplyMM(
|
Matrix.multiplyMM(
|
||||||
/* result= */ tempResultMatrix,
|
/* result= */ tempResultMatrix,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue