Three/R168/ViewportBottomLeft To ViewportUV.FlipY()

1.0.0Last update Sep 1, 2024
by@yugal41735

This codemod replaces viewportBottomLeft with viewportUV.flipY()

Example

Additional Information: But keep in mind we have to remove viewportBottomLeft manually from the import statement. In this version it does not remove viewportBottomLeft from import statements.

Before

backgroundNode = texture(background, viewportBottomLeft).setUpdateMatrix(true);

After

backgroundNode = texture(background, viewportUV.flipY()).setUpdateMatrix(true);

Before

nodeUV = viewportBottomLeft;

After

nodeUV = viewportUV.flipY();

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now