IronWarrior / UnityOutlineShader

Source code for Outline Shader tutorial for Unity. Detects edges in a scene using the depth and normals buffers.
https://roystan.net/articles/outline-shader
The Unlicense
882 stars 109 forks source link

Fix missing shader in player build #9

Open BX80646G3258 opened 3 years ago

BX80646G3258 commented 3 years ago

The custom shader is not automatically included in the player build if it is not referenced by anything. This causes the player build to skip the post processing effect in 2018.4, and causes the renderer to crash in 2019.4.

This bug was fixed by adding the shader to the "Always Included Shaders" list in Project Settings/Graphics.

BX80646G3258 commented 2 years ago

I think this should also be included as a step in your outline shader tutorial so that others will not encounter this issue