DepthTexture.OnRenderImage C# (CSharp) 메소드

OnRenderImage() 보호된 메소드

protected OnRenderImage ( RenderTexture sourceTexture, RenderTexture destTexture ) : void
sourceTexture RenderTexture
destTexture RenderTexture
리턴 void
    protected void OnRenderImage(RenderTexture sourceTexture, RenderTexture destTexture)
    {
        if (shader != null)
        {
            // Copy the source Render Texture to the destination,
            // applying the material along the way.
            Mat.SetFloat("_DepthPower", depthPower);
            Graphics.Blit(sourceTexture, destTexture, Mat);
        }
        else
        {
            Graphics.Blit(sourceTexture, destTexture);
        }
    }