update doc/*/scripting/builtins/libgfx-blockwraps.md

This commit is contained in:
MihailRis 2025-12-21 16:46:36 +03:00
parent c47432c979
commit 7a83f38c91
2 changed files with 28 additions and 0 deletions

View file

@ -39,6 +39,20 @@ gfx.blockwraps.set_faces(
-- face texture 6 (+Z)
face6?: string
)
-- Sets the tint of the sides (-X, +X, -Y, +Y, -Z, +Z).
-- RGB [0.0; 1.0]
gfx.blockwraps.set_tints(
-- wrapper id
id: int,
-- side 1 color (-X)
face1?: vec3,
-- side 2 color (+X)
face2?: vec3,
...
-- side 6 color (+Z)
face6?: vec3
)
```
Wrappers are not automatically removed without calling `unwrap`.

View file

@ -40,6 +40,20 @@ gfx.blockwraps.set_faces(
-- текстура стороны 6 (+Z)
face6?: string
)
-- Устанавливает окраску сторон (-X, +X, -Y, +Y, -Z, +Z).
-- RGB [0.0; 1.0]
gfx.blockwraps.set_tints(
-- id обёртки
id: int,
-- цвет стороны 1 (-X)
face1?: vec3,
-- цвет стороны 2 (+X)
face2?: vec3,
...
-- цвет стороны 6 (+Z)
face6?: vec3
)
```
Обертки не удаляются автоматически без вызова `unwrap`.