1. Home
  2. Docs
  3. Magio
  4. Tutorials
  5. Create Compatibility for a third-party shader

Create Compatibility for a third-party shader

Example: You have an object in your scene that you want to ignite in flames. Your object uses this underground/less-known shader from the asset store, let’s call it “Jimbo’s awesome party shader” and it is not supported by Magio out-of-the-box.

How to implement:

  1. You can add compatibility with any shader that has at least a color parameter exposed.
  2. To create a new compatibility object right click on your project assets window-> Create->Magio->ShaderCompatibility.
  3. Scriptable object looking like this will be created:
  1. It is better if your shader has a property like _IsYourShader, to be checked, but you can also use the name of the shader. These are used to detect your shader.
  2. Set the color property names, if you want the colors to be animated. Colors can be later set in Magio Object Effect component->Material Animation individually for all the objects.
  3. Add float properties to be animated at different life points. E.g. leaves/wind multipliers.
  4. Check the Arctibyte/Magio/Core/Combatibility/CompatibleSettings folder for examples.
  5. Add your created compatibility in MagioEngine->CompatibleShaders

Leave a Reply

Your email address will not be published. Required fields are marked *