Exemple #1
0
    protected virtual void OnRenderImage(RenderTexture src, RenderTexture dst)
    {
        colorMatrix.Setup(colorVisualizerMat);

        switch (outputMode)
        {
        case OutputModeEnum.AdvectionSource:
            Graphics.Blit(_sourceTex.Texture, dst, colorVisualizerMat);
            break;

        case OutputModeEnum.AdvectedImage:
            Graphics.Blit(_imageTex0.Texture, dst, colorVisualizerMat);
            break;

        default:
            Graphics.Blit(src, dst);
            break;
        }
    }