Registry
Y

three/r168/viewportTopLeft-to-viewportUV

No description available

yugal417350 executions

  • Legacy
  • three
  • migration
  • r168
Connect a repo
npx codemod three/r168/viewportTopLeft-to-viewportUV

This codemod replaces viewportTopLeft with viewportUV

Example

Before

ts
import { toneMapping, color, viewportTopLeft } from "three/nodes";

After

ts
import { toneMapping, color, viewportUV } from "three/nodes";

Before

ts
scene.backgroundNode = viewportTopLeft.y.mix(color(0x66bbff), color(0x4466ff));

After

ts
scene.backgroundNode = viewportUV.y.mix(color(0x66bbff), color(0x4466ff));

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.