Skip to content

Commit

Permalink
Runtime component addition support
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Oct 10, 2018
1 parent 4d7ffe5 commit 519a2aa
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Assets/Klak/Syphon/Runtime/SyphonServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,11 @@ public bool alphaSupport {

#endregion

#region Blit shader

[SerializeField, HideInInspector] Shader _blitShader;
Material _blitMaterial;

#endregion

#region Misc variables
#region Internal objects and variables

IntPtr _serverInstance;
Texture _serverTexture;
Material _blitMaterial;
bool _hasCamera;

#endregion
Expand Down Expand Up @@ -114,7 +108,7 @@ void Update()
// Lazy initialization for the internal objects.
if (_blitMaterial == null)
{
_blitMaterial = new Material(_blitShader);
_blitMaterial = new Material(Shader.Find("Hidden/Klak/Syphon/Blit"));
_blitMaterial.hideFlags = HideFlags.DontSave;
}

Expand Down

0 comments on commit 519a2aa

Please sign in to comment.