Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add error message when shader is not found
  • Loading branch information
elringus committed Nov 5, 2017
1 parent f8a1e5c commit c7f43db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/SpriteGlow/SpriteGlowMaterial.cs
Expand Up @@ -16,6 +16,8 @@ public class SpriteGlowMaterial : Material
public SpriteGlowMaterial (Texture spriteTexture, bool drawOutside = false, bool instancingEnabled = false)
: base(OUTLINE_SHADER)
{
if (!OUTLINE_SHADER) Debug.LogError(string.Format("{0} shader not found. Make sure the shader is included to the build.", OUTLINE_SHADER_NAME));

mainTexture = spriteTexture;
if (drawOutside) EnableKeyword(OUTSIDE_MATERIAL_KEYWORD);
if (instancingEnabled) enableInstancing = true;
Expand Down

0 comments on commit c7f43db

Please sign in to comment.