Skip to content

Commit

Permalink
Added log when compiling a shader
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsakharov committed Apr 4, 2024
1 parent 2e8f3d3 commit 239c980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Prowl.Runtime/Resources/Shader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ private uint CompileShader(string frag, string vert, string fallback)
{
try
{
Debug.Log($"Compiling Shader {Name}");
return Compile(vert, "", frag);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Debug.LogError(e.Message);
}
var fallbackShader = Find(fallback);
return fallbackShader.Res.CompilePass(0, []);
Expand Down

0 comments on commit 239c980

Please sign in to comment.