private RenderTexture CreateRenderTexture(int size) { RenderTextureFormat renderTextureFormat = SystemInfoEx.SupportsRenderTextureFormat((RenderTextureFormat)15) ? (RenderTextureFormat)15 : (RenderTextureFormat)14; RenderTexture renderTexture = new RenderTexture(size, size, 0, renderTextureFormat, (RenderTextureReadWrite)1); ((Texture)renderTexture).set_filterMode((FilterMode)1); ((Texture)renderTexture).set_wrapMode((TextureWrapMode)1); renderTexture.Create(); return(renderTexture); }
private RenderTexture CreateRenderTexture(int size) { RenderTexture renderTexture = new RenderTexture(size, size, 0, (SystemInfoEx.SupportsRenderTextureFormat(RenderTextureFormat.RHalf) ? RenderTextureFormat.RHalf : RenderTextureFormat.RFloat), RenderTextureReadWrite.Linear) { filterMode = FilterMode.Bilinear, wrapMode = TextureWrapMode.Clamp }; renderTexture.Create(); return(renderTexture); }