diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-20 19:49:46 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-20 19:49:46 +0100 |
commit | 2e3912fbc8d0e2c100a8d75bd2e8d3a579d25db0 (patch) | |
tree | 82da40367ae89e9217c207ffda7a87ed12a24ef1 /doc/resources.md | |
parent | bde0d7d3cc05752977b84a35821481e0e791febe (diff) | |
download | weareserver-2e3912fbc8d0e2c100a8d75bd2e8d3a579d25db0.tar weareserver-2e3912fbc8d0e2c100a8d75bd2e8d3a579d25db0.tar.bz2 weareserver-2e3912fbc8d0e2c100a8d75bd2e8d3a579d25db0.tar.zst |
armature
Diffstat (limited to 'doc/resources.md')
-rw-r--r-- | doc/resources.md | 83 |
1 files changed, 47 insertions, 36 deletions
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<Texture>` | Use color channels | -| `tex_roughness` | `Res<Texture>` | Use green channel | -| `tex_metallic` | `Res<Texture>` | Use blue channel | -| `tex_albedo` | `Res<Texture>` | Use color channels | -| `tex_alpha` | `Res<Texture>` | Use alpha channel | -| `tex_transmission` | `Res<Texture>` | Use red channel | -| `tex_emission` | `Res<Texture>` | Use color channels | -| `tex_thickness` | `Res<Texture>` | Use green channel | -| `tex_occlusion` | `Res<Texture>` | Use red channel | -| `hint_mirror` | | | +| Key | Value Type | | +| -------------------- | ----------------- | ------------------ | +| `name` | `String` | | +| `index` | `Res<[u32; 3]>` | | +| `armature` | `Res<Armature>` | | +| `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<Texture>` | Use color channels | +| `tex_roughness` | `Res<Texture>` | Use green channel | +| `tex_metallic` | `Res<Texture>` | Use blue channel | +| `tex_albedo` | `Res<Texture>` | Use color channels | +| `tex_alpha` | `Res<Texture>` | Use alpha channel | +| `tex_transmission` | `Res<Texture>` | Use red channel | +| `tex_emission` | `Res<Texture>` | Use color channels | +| `tex_thickness` | `Res<Texture>` | Use green channel | +| `tex_occlusion` | `Res<Texture>` | 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 | |