mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
update doc/*/scripting/builtins/libgfx-blockwraps.md
This commit is contained in:
parent
c47432c979
commit
7a83f38c91
2 changed files with 28 additions and 0 deletions
|
|
@ -39,6 +39,20 @@ gfx.blockwraps.set_faces(
|
||||||
-- face texture 6 (+Z)
|
-- face texture 6 (+Z)
|
||||||
face6?: string
|
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`.
|
Wrappers are not automatically removed without calling `unwrap`.
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,20 @@ gfx.blockwraps.set_faces(
|
||||||
-- текстура стороны 6 (+Z)
|
-- текстура стороны 6 (+Z)
|
||||||
face6?: string
|
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`.
|
Обертки не удаляются автоматически без вызова `unwrap`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue