summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-04-14 18:07:52 -0700
committeryum <yum.food.vr@gmail.com>2023-04-14 18:12:13 -0700
commit273a3ab97da0aa543e970ce5c45908ee89c2f632 (patch)
tree93d78aae89e04e005ca461cb591aea31539d3b4e /README.md
parent6a14a2dd1dd5208c7cb1ea04c49d759484121ce7 (diff)
Add avatar cloning shader
See README.md.
Diffstat (limited to 'README.md')
-rw-r--r--README.md31
1 files changed, 29 insertions, 2 deletions
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`.
+