Change a texture set: make a new version of it
r3_texture_updateChange a texture set the account owns: its look (controls: seed, scale, colours, contrast, bumpiness, roughness {min, max}, metalness, size, tileWorldSize, height, applied to the set's own recipe; scale multiplies its pattern, so 2 is twice as fine as now) or a whole new recipe (read the current one with r3_texture_read, change it, pass it here). The set itself never changes: the change is saved as a new version under the same name (the user's lists show the latest), with new maps, and every project and release that uses an older version's maps keeps them. Give name only to make a separate copy under that name instead. The same recipe as the latest version saves nothing. The answer names the user's projects still on an older version; put the new set on a material with r3_texture_apply when the user wants it. An invalid change is refused with the path of the problem. Counts as one render toward your hourly texture budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Only to make a separate COPY under this name. Default: a new version of the same set, same name. | |
| setId | Yes | The set to change (r3_texture_create / r3_texture_read answer it). The account's own. | |
| recipe | No | Or a whole new recipe (format "r3-texture-recipe", version 1). | |
| controls | No | Changes to its recipe: {seed, scale, colours, contrast, bumpiness, roughness: {min, max}, metalness, size, tileWorldSize, height}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maps | Yes | ||
| name | Yes | ||
| size | Yes | ||
| setId | Yes | ||
| stats | Yes | ||
| answer | Yes | This answer in words: what was done, what R3 measured, decided or refused, and what to do next. The same text as the result's text block. Read it: the fields beside it are the data, this is the guidance. | |
| version | Yes | ||
| warnings | Yes | ||
| unchanged | Yes | ||
| previousId | Yes | ||
| previousInUse | Yes | ||
| tileWorldSize | Yes |