void Start() { //rt = new RenderTexture(512, 512, 32*4, RenderTextureFormat.ARGBFloat, RenderTextureReadWrite.Linear); model = new NNModel(); model.Load(style.ToString()); //GetComponent<Camera>().targetTexture = rt; GetComponent <Camera>().depthTextureMode = DepthTextureMode.Depth | DepthTextureMode.DepthNormals; t2d = new Texture2D(512, 512, TextureFormat.RGBAFloat, false); rt = new RenderTexture(512, 512, 128); }
void Start() { model = new NNModel(); model.Load(style.ToString()); }