Skip to content

Instantly share code, notes, and snippets.

@EtiTheSpirit
Last active April 21, 2024 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EtiTheSpirit/c58ac72249f496fb4b41eca48785dd37 to your computer and use it in GitHub Desktop.
Save EtiTheSpirit/c58ac72249f496fb4b41eca48785dd37 to your computer and use it in GitHub Desktop.
For the Wisp shader.

Within this folder is a prefab for the wisp. It comes with default settings.

There are a couple details to note!

  1. This shader was designed SPECIFICALLY for the built in wisp mesh! It will break if you try to put it on any other mesh or model.
  2. This comes with only its default motion animation. If you want anything extra, you need to do it yourself.

Setting Up

It's easy! The object comes as a prefab. Literally just drag n drop into your avatar and that's it. Set it up with a physbone if you wanna, or leave it hanging there.

(V3 and before) The wisp has one physics bone so that it can be touched and moved around. Configure this as you wish.

Resizing The Wisp (V3 and before)

You may notice a strange option on the material named "Wisp Lighting Scale". This last value is important if you want to resize the wisp.

If you select the object named "Wisp Core", you'll notice that its scale is 0.1 on X, Y, and Z. If you change this, do the following:

  1. Ensure that X, Y, and Z all have the same value for Scale. (0.1 0.1 0.1 is OK, but 0.1 0.2 0.3 is not).
  2. Go to the material's settings, and set Wisp Lighting Scale to the same number.
For the knowledgeable (this isn't a step, its for anyone wondering why I did it this way): This manual scale technique was chosen because code to approximate the uniform scale of the model is less than ideal (involving three cube root calls), so I favored performance here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment