internal static bool TryReadShader(string shaderFileName, UnityEngine.Renderer renderer)
    {
#if CAN_READSHADER
        try {
            System.IO.StreamReader streamReader = new System.IO.StreamReader(shaderFileName);
            renderer.sharedMaterial = new Material(streamReader.ReadToEnd());
            streamReader.Close();
            return(true);
        } catch (System.Exception e) {
            Debug.Log("COULD NOT LOAD SHADER FILE " + shaderFileName + " ERROR CODE FOLLOWS:\r\n" + e + "\r\nUSING FALLBACK");

            return(false);
        }
#else
        Debug.Log("COULD NOT LOAD SHADER FILE " + shaderFileName + " not supported in this unity " + renderer.ToString());
        return(false);
#endif
    }