From 273a3ab97da0aa543e970ce5c45908ee89c2f632 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 14 Apr 2023 18:07:52 -0700 Subject: Add avatar cloning shader See README.md. --- README.md | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 882a6c0..064113c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Then assign the shader you want (like yum\_food/parallax) to a material. Please ask setup questions [on the discord](https://discord.gg/YWmCvbCRyn). -## Parallax +## Parallax (`yum_food/parallax`) ![Parallax demo](Demos/parallax_demo.gif) @@ -20,7 +20,7 @@ In these demos, I have the shader on a quad. Full demo video [here](https://youtu.be/WvPdqxmrZzI). -## Displacement +## Displacement (`yum_food/displacement`) ![Displacement demo](Demos/displacement_demo.gif) @@ -38,3 +38,30 @@ In these demos, I have the shader on a 100x100 plane. Full demo video [here](https://youtu.be/Giui4aCjtI0). +## Avatar cloning (`yum_food/avatar_clone`) + +![Avatar cloning demo](Demos/av_clone_demo.gif) + +A cloning system using a geometry shader. + +* Same features as the displacement shader. +* Spawn up to 4 clones at controllable x/y/z offsets (in meters). +* Clones spawn on the left or right side, in alternating order. + +To use it in game: +* Assign the shader to all material slots you want to clone. +* Assign textures. +* Create 4 animations: + * Set number of clones to 0. + * Set number of clones to 4. + * Set clone X offset to 0. + * Set clone X offset to 1. +* Create 2 float params: + * `Clone_Count`: controls number of clones. + * `Clone_dx`: controls each clone's X axis offset. +* Create 2 layers in your FX layer: + * One uses `Clone_Count` to blend between 0 and 4 clones. + * One uses `Clone_dx` to blend between 0 and 1 x offset. +* Create two radial puppet controls, one for `Clone_Count`, and one for + `Clone_dx`. + -- cgit v1.2.3