Beispiel #1
0
        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);
        }
Beispiel #2
0
 void Start()
 {
     model = new NNModel();
     model.Load(style.ToString());
 }