set_texture
Adjust a Three.js texture's sampling and transform in the live browser scene: wrap, filter, anisotropy, repeat, offset, rotation, colorSpace. Changes are tracked and revertible.
Instructions
[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Change texture sampling and transform: wrap, filter, anisotropy, repeat, offset, rotation, colorSpace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Texture name | |
| uuid | No | Texture UUID | |
| flipY | No | ||
| wrapS | No | 1000=Repeat, 1001=ClampToEdge, 1002=MirroredRepeat | |
| wrapT | No | Same values as wrapS | |
| offset | No | [x, y] offset | |
| repeat | No | [x, y] repeat | |
| rotation | No | Radians | |
| magFilter | No | 1003=Nearest, 1006=Linear | |
| minFilter | No | 1003=Nearest, 1006=Linear, 1008=LinearMipmapLinear | |
| anisotropy | No | 1-16 | |
| colorSpace | No | srgb, srgb-linear |