Unity surface shaders can now have Alloy's area lights, colored light cookies, BRDF, etc via our code Injection Headers. If the surface shader uses either Unity's Standard or StandardSpecular lighting models, simply do the following:
- In the Project tab, navigate to the "Alloy/Shaders/Unity" folder.
- Right click on one of the files inside the folder and select "Show in explorer".
- In the window, select all the "*.cginc" files, and copy them.
- Close the window and click back into the Unity editor.
- In the Project tab, navigate to the folder containing a compatible Unity surface shader.
- Right click on the shader and select "Show in explorer".
- Paste the headers in the same folder as the shader.
- Close the window, click back into the Unity editor, and wait for the shader to automatically recompile.
Now you're ready to go.
NOTE: You will need to repeat these steps every time you download a new version of Alloy.