From 2e3912fbc8d0e2c100a8d75bd2e8d3a579d25db0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 20 Jan 2025 19:49:46 +0100 Subject: armature --- doc/resources.md | 83 ++++++++++++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 36 deletions(-) (limited to 'doc/resources.md') diff --git a/doc/resources.md b/doc/resources.md index afb6bb8..9a38215 100644 --- a/doc/resources.md +++ b/doc/resources.md @@ -33,42 +33,45 @@ array. ombinations 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. -| Key | Value Type | | -| -------------------- | -------------- | ------------------ | -| `name` | `String` | | -| `index` | `Res` | | -| `g_metallic` | `Float` | | -| `g_roughness` | `Float` | | -| `g_albedo` | `Vec3` | | -| `g_alpha` | `Float` | | -| `g_transmission` | `Float` | | -| `g_emission` | `Vec3` | | -| `g_refractive_index` | `Float` | | -| `g_attenuation` | `Vec3` | | -| `g_dispersion` | `Float` | | -| `g_thickness` | `Float` | | -| `g_unlit` | | | -| `g_double_sided` | | | -| `va_position` | `Res<[Vec3]>` | | -| `va_normal` | `Res<[Vec3]>` | | -| `va_tangent` | `Res<[Vec3]>` | | -| `va_texcoord` | `Res<[Vec2]>` | | -| `va_roughness` | `Res<[Float]>` | | -| `va_metallic` | `Res<[Float]>` | | -| `va_albedo` | `Res<[Vec3]>` | | -| `va_alpha` | `Res<[Float]>` | | -| `va_transmission` | `Res<[Float]>` | | -| `va_emission` | `Res<[Vec3]>` | | -| `tex_normal` | `Res` | Use color channels | -| `tex_roughness` | `Res` | Use green channel | -| `tex_metallic` | `Res` | Use blue channel | -| `tex_albedo` | `Res` | Use color channels | -| `tex_alpha` | `Res` | Use alpha channel | -| `tex_transmission` | `Res` | Use red channel | -| `tex_emission` | `Res` | Use color channels | -| `tex_thickness` | `Res` | Use green channel | -| `tex_occlusion` | `Res` | Use red channel | -| `hint_mirror` | | | +| Key | Value Type | | +| -------------------- | ----------------- | ------------------ | +| `name` | `String` | | +| `index` | `Res<[u32; 3]>` | | +| `armature` | `Res` | | +| `g_metallic` | `Float` | | +| `g_roughness` | `Float` | | +| `g_albedo` | `Vec3` | | +| `g_alpha` | `Float` | | +| `g_transmission` | `Float` | | +| `g_emission` | `Vec3` | | +| `g_refractive_index` | `Float` | | +| `g_attenuation` | `Vec3` | | +| `g_dispersion` | `Float` | | +| `g_thickness` | `Float` | | +| `g_unlit` | | | +| `g_double_sided` | | | +| `va_position` | `Res<[Vec3]>` | | +| `va_normal` | `Res<[Vec3]>` | | +| `va_tangent` | `Res<[Vec3]>` | | +| `va_texcoord` | `Res<[Vec2]>` | | +| `va_roughness` | `Res<[Float]>` | | +| `va_metallic` | `Res<[Float]>` | | +| `va_albedo` | `Res<[Vec3]>` | | +| `va_alpha` | `Res<[Float]>` | | +| `va_transmission` | `Res<[Float]>` | | +| `va_emission` | `Res<[Vec3]>` | | +| `va_joint_weight` | `Res<[[f32; 4]]>` | | +| `va_joint_index` | `Res<[[u16; 4]]>` | | +| `tex_normal` | `Res` | Use color channels | +| `tex_roughness` | `Res` | Use green channel | +| `tex_metallic` | `Res` | Use blue channel | +| `tex_albedo` | `Res` | Use color channels | +| `tex_alpha` | `Res` | Use alpha channel | +| `tex_transmission` | `Res` | Use red channel | +| `tex_emission` | `Res` | Use color channels | +| `tex_thickness` | `Res` | Use green channel | +| `tex_occlusion` | `Res` | Use red channel | +| `hint_mirror` | | | - **Attenuation**: Attenuation coefficient for each color channel due to scattering within the material volume expressed as e-folding distance (m^-1). @@ -88,6 +91,14 @@ white except normals are zero. properly e.g. show use a texture that shows output of another render pass from the mirrors perspective. It can be assumed that the mesh is on a single plane. +## Armature + +| Key | Value Type | | +| ----------- | ------------------- | ------------------------------------ | +| `parent` | `[u32]` | Parent indecies | +| `transform` | `[(Matrix3, Vec3)]` | | +| `names` | `[String]` | Each string prefixed with u16 length | + ## LightPart | Key | Value Type | -- cgit v1.2.3-70-g09d2