From 0a0abfe7b093d91447fb7070820a0e6d56d6c22d Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 7 Jan 2025 16:50:44 +0100 Subject: normal texture --- a.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'a.md') diff --git a/a.md b/a.md index 8498b6c..a320e6d 100644 --- a/a.md +++ b/a.md @@ -16,10 +16,19 @@ ff disconnect() 06 pose(id: Obj, params: Vec) 07 parent(parent: Obj, child: Obj) 08 sound(id: Obj, data: Vec) +09 prefab_index(res: Res) ``` ## Resource formats +### PrefabIndex + +``` +PrefabIndex = *(len_key:u16 len_value:u16 *(key:u8) *(value:u8)) +``` + +Key is string with model name. Value is prefab resource. + ### Prefab ``` @@ -34,7 +43,7 @@ Attribute = 0x01 constant:f32 / 0x02 buffer:Res / 0x03 texture:Res NewAttribute = flag:u8 constant:f32 buffer:Res texture:Res ``` -Combinations of g_*, va_* and tex_* are multiplied except normal which is added. +Combinations of g__, va__ and tex_* are multiplied except normal which is added. Defaults should be the identity for that operation, so default is 1 / white except normals are zero. -- cgit v1.2.3-70-g09d2