Skip to content

Commit

Permalink
fix(camera): update ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrododo committed Dec 9, 2023
1 parent 147699e commit 98278ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/materials/FilterMaterialVideoEdge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const FilterMaterialVideoEdge = ({
if (materialRef.current === undefined) return;
const resolution = [mediaTrackSettings.width, mediaTrackSettings.height];
materialRef.current.uniforms.iResolution.value = resolution;
}, [mediaTrackSettings]);
}, [mediaTrackSettings.width, mediaTrackSettings.height]);

useEffect(() => {
if (materialRef.current === undefined) return;
Expand Down

0 comments on commit 98278ae

Please sign in to comment.