#[FAQ] How do I use the Eye Stencils feature in the HoyoToon Genshin Shader?

1 messages · Page 1 of 1 (latest)

lyric relic
#

Table Of Contents

  • [Setting It Up](#1325921892904997034 message)
  • [Blender Steps](#1325921892904997034 message)
  • [Unity Steps](#1325921892904997034 message)
#

Setting It Up

There are two sets of steps you need to take in order to get this feature working. It isn't difficult and doesn't take longer than a couple of minutes.

#

Blender Steps

  • Separating the eyes from it's original mesh: After importing your model and converting it with Hoyo2VRC but before exporting, you will need to select the mesh that the eyes are on. After going into edit mode, you will select the vertices of the eyes (standard blender hotkey is L and if you press L while hovering over a vertice it will select all connected vertices.) After selecting the eyes you are going to separate them by pressing P on your keyboard and selecting "Separate by Selection". This will create a new mesh with just the eyes.
#
  • Creating a new material: After separating it, you will need to create a new material. I recommend naming it something that follows the genshin naming scheme. So in my case, it would be Avatar_Girl_Pole_HutaoCostumeWinter_Mat_Eye. On the eye mesh ONLY, delete all the other materials so you do not end up with duplicates.
#
  • Assigning the new material: Once the new material is created and in edit mode on the Eye mesh, you will select all vertices and then, in the properties tab, the newly made eyes material. Then simply press assign.
#
  • Joining the Eye Mesh to the Face Mesh: The next step is important because it will enable you to be able to use the filter by side option in the shader inside unity. In Object Mode, simply select the Eye and Face Meshes (or objects) and join them by pressing Ctrl+J.
#
  • Exporting the model: Before exporting the model, make sure that the face mesh (with the eyes now on it) is still named Face. In some cases the mesh may be renamed to whatever the eye mesh was named. Once that's made sure of, simply export the model as you would normally through Hoyo2VRC. Your model is now ready for unity!
#

Unity Steps:

  • Pre material generation step: Once your model is imported into unity, duplicate the material json that the eye's originally belonged to, sometimes this is the hair and sometimes this is the body, it depends on the model.
#
  • Set up your model as normal and if everything worked, the eyes should not be white or purple.
#
  • Modifying the materials to enable the feature: For the Face, Hair, and Eyes materials simply enable the Stencils feature and change the Stencil Type accordingly.
#
  • If everything worked correctly, your model's eyes will now show up over the hair!