mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
feat: bytearray support in gfx.posteffects.set_array
This commit is contained in:
parent
8d9d1f9039
commit
4403df78d9
3 changed files with 9 additions and 6 deletions
|
|
@ -41,8 +41,8 @@ gfx.posteffects.set_array(
|
|||
slot: int,
|
||||
-- имя параметра (массива)
|
||||
name: string
|
||||
-- строка данных (используйте функцию Bytearray_as_string)
|
||||
data: string
|
||||
-- данные
|
||||
data: Bytearray
|
||||
)
|
||||
|
||||
-- Пример заполнения массива `#param vec3 u_имяМассива[64]`:
|
||||
|
|
@ -54,4 +54,4 @@ for i = 0, 63 do
|
|||
Bytearray.append(buffer, byteutil.pack("fff", x, y, z))
|
||||
end
|
||||
gfx.posteffects.set_array(slot, "u_имяМассива", Bytearray_as_string(buffer))
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue