From a09a19c4a0e1c5f66ce283e2ee74ddb81810b08f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 20 Jan 2025 16:58:12 +0100 Subject: doc tangent and mirror hint --- doc/resources.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/resources.md b/doc/resources.md index e4944ef..afb6bb8 100644 --- a/doc/resources.md +++ b/doc/resources.md @@ -51,6 +51,7 @@ white except normals are zero. | `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]>` | | @@ -67,6 +68,7 @@ white except normals are zero. | `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). @@ -82,6 +84,9 @@ white except normals are zero. shaders are applied. See [KHR_materials_unlit] - **Double Sided**: Disable backface culling for this mesh. Equivalent to `material.doubleSided` of glTF 2.0. +- **Mirror Hint**: Suggest a client to render reflections of this surface + 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. ## LightPart -- cgit v1.2.3-70-g09d2